sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheolsoo Park (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SQOOP-476) If table name is a qualified name, Sqoop import fails in DB2
Date Sun, 27 May 2012 19:33:23 GMT

     [ https://issues.apache.org/jira/browse/SQOOP-476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Cheolsoo Park updated SQOOP-476:

    Attachment: SQOOP-476.patch

Review board:
> If table name is a qualified name, Sqoop import fails in DB2
> ------------------------------------------------------------
>                 Key: SQOOP-476
>                 URL: https://issues.apache.org/jira/browse/SQOOP-476
>             Project: Sqoop
>          Issue Type: Bug
>            Reporter: Cheolsoo Park
>            Assignee: Cheolsoo Park
>         Attachments: SQOOP-476.patch
> In DB2, it is OK to have a dot "." in table name, but it is not in alias. For example,
the following query fails:
> {code}
> SELECT * FROM foo.bar AS foo.bar
> SQL0104N  An unexpected token "." was found following "from foo.bar as foo".  
> Expected tokens may include:  ",".  SQLSTATE=42601
> {code}
> During the import job, Sqoop uses the following select query:
> {code}
> SELECT <column names> FROM <table name> AS <table name>
> {code}
> As can be seen, it can be a problem for DB2 if table name has a dot "." in it.

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


View raw message