sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cheolsoo Park (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SQOOP-476) If table name is a qualified name, Sqoop import fails in DB2
Date Thu, 05 Apr 2012 22:30:25 GMT
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

        

Mime
View raw message