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


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