[ 
https://issues.apache.org/jira/browse/SQOOP-476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287572#comment-13287572
 ] 

Hudson commented on SQOOP-476:
------------------------------

Integrated in Sqoop-ant-jdk-1.6 #118 (See 
[https://builds.apache.org/job/Sqoop-ant-jdk-1.6/118/])
    SQOOP-476  If table name is a qualified name, Sqoop import fails in DB2 
(Revision 1345282)

     Result = SUCCESS
blee : 
Files : 
* /sqoop/trunk/src/java/org/apache/sqoop/manager/Db2Manager.java
* /sqoop/trunk/src/java/org/apache/sqoop/mapreduce/db/DBInputFormat.java
* 
/sqoop/trunk/src/java/org/apache/sqoop/mapreduce/db/DataDrivenDBRecordReader.java
* /sqoop/trunk/src/java/org/apache/sqoop/mapreduce/db/Db2DBRecordReader.java
* 
/sqoop/trunk/src/java/org/apache/sqoop/mapreduce/db/Db2DataDrivenDBInputFormat.java
* 
/sqoop/trunk/src/java/org/apache/sqoop/mapreduce/db/Db2DataDrivenDBRecordReader.java
* 
/sqoop/trunk/src/test/com/cloudera/sqoop/manager/DB2ManagerImportManualTest.java

                
> 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

        

Reply via email to