Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-414

Column names are not guaranteed in order for getColumnNames of OracleManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.1-incubating
    • None
    • None

    Description

      OracleManager uses the following query to retrieve column names:
      public static final String QUERY_COLUMNS_FOR_TABLE =
      "SELECT COLUMN_NAME FROM ALL_TAB_COLUMNS WHERE "
      + "OWNER = ? AND TABLE_NAME = ?";

      However, it does not guarantee the order of the returned column names
      unless a "ORDER BY" is specified. This may not work properly for newer
      version of Oracle.

      Attachments

        1. SQOOP-414.patch
          0.6 kB
          Bilung Lee

        Activity

          People

            bleeapache Bilung Lee
            bleeapache Bilung Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: