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

Column names are not guaranteed in order for getColumnNames of OracleManager

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.1-incubating
    • Component/s: None
    • Labels:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: