You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Cheolsoo Park (JIRA)" <ji...@apache.org> on 2012/05/27 21:33:23 UTC
[jira] [Updated] (SQOOP-476) If table name is a qualified name,
Sqoop import fails in DB2
[ 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:
https://reviews.apache.org/r/4674/
> 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