You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Bilung Lee (Created) (JIRA)" <ji...@apache.org> on 2011/12/19 20:43:30 UTC

[jira] [Created] (SQOOP-414) Column names are not guaranteed in order for getColumnNames of OracleManager

Column names are not guaranteed in order for getColumnNames of OracleManager
----------------------------------------------------------------------------

                 Key: SQOOP-414
                 URL: https://issues.apache.org/jira/browse/SQOOP-414
             Project: Sqoop
          Issue Type: Bug
            Reporter: Bilung Lee


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.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (SQOOP-414) Column names are not guaranteed in order for getColumnNames of OracleManager

Posted by "Jarek Jarcec Cecho (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SQOOP-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarek Jarcec Cecho updated SQOOP-414:
-------------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Patch for this issue is already committed, so I'm closing this JIRA.
                
> Column names are not guaranteed in order for getColumnNames of OracleManager
> ----------------------------------------------------------------------------
>
>                 Key: SQOOP-414
>                 URL: https://issues.apache.org/jira/browse/SQOOP-414
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Bilung Lee
>            Assignee: Bilung Lee
>             Fix For: 1.4.1-incubating
>
>         Attachments: SQOOP-414.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SQOOP-414) Column names are not guaranteed in order for getColumnNames of OracleManager

Posted by "Arvind Prabhakar (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SQOOP-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172672#comment-13172672 ] 

Arvind Prabhakar commented on SQOOP-414:
----------------------------------------

Changes look good Bilung.
                
> Column names are not guaranteed in order for getColumnNames of OracleManager
> ----------------------------------------------------------------------------
>
>                 Key: SQOOP-414
>                 URL: https://issues.apache.org/jira/browse/SQOOP-414
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Bilung Lee
>             Fix For: 1.4.1-incubating
>
>         Attachments: SQOOP-414.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SQOOP-414) Column names are not guaranteed in order for getColumnNames of OracleManager

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SQOOP-414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172768#comment-13172768 ] 

Hudson commented on SQOOP-414:
------------------------------

Integrated in Sqoop-ant-jdk-1.6 #69 (See [https://builds.apache.org/job/Sqoop-ant-jdk-1.6/69/])
    SQOOP-414. Column name ordering guarantee for OracleManager.

(Bilung Lee via Arvind Prabhakar)

arvind : http://svn.apache.org/viewvc/?view=rev&rev=1220973
Files : 
* /incubator/sqoop/trunk/src/java/org/apache/sqoop/manager/OracleManager.java

                
> Column names are not guaranteed in order for getColumnNames of OracleManager
> ----------------------------------------------------------------------------
>
>                 Key: SQOOP-414
>                 URL: https://issues.apache.org/jira/browse/SQOOP-414
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Bilung Lee
>            Assignee: Bilung Lee
>             Fix For: 1.4.1-incubating
>
>         Attachments: SQOOP-414.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (SQOOP-414) Column names are not guaranteed in order for getColumnNames of OracleManager

Posted by "Bilung Lee (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SQOOP-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bilung Lee updated SQOOP-414:
-----------------------------

    Attachment: SQOOP-414.patch
    
> Column names are not guaranteed in order for getColumnNames of OracleManager
> ----------------------------------------------------------------------------
>
>                 Key: SQOOP-414
>                 URL: https://issues.apache.org/jira/browse/SQOOP-414
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Bilung Lee
>         Attachments: SQOOP-414.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (SQOOP-414) Column names are not guaranteed in order for getColumnNames of OracleManager

Posted by "Arvind Prabhakar (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SQOOP-414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arvind Prabhakar updated SQOOP-414:
-----------------------------------

    Fix Version/s: 1.4.1-incubating
         Assignee: Bilung Lee
           Status: Patch Available  (was: Open)

Patch committed. Thanks Bilung!
                
> Column names are not guaranteed in order for getColumnNames of OracleManager
> ----------------------------------------------------------------------------
>
>                 Key: SQOOP-414
>                 URL: https://issues.apache.org/jira/browse/SQOOP-414
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Bilung Lee
>            Assignee: Bilung Lee
>             Fix For: 1.4.1-incubating
>
>         Attachments: SQOOP-414.patch
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira