You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Raghav Kumar Gautam (JIRA)" <ji...@apache.org> on 2013/07/01 22:06:20 UTC

[jira] [Updated] (SQOOP-906) Sqoop is always calling ConnectionManager.datetimeToQueryString with TIMESTAMP column type

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

Raghav Kumar Gautam updated SQOOP-906:
--------------------------------------

    Attachment: SQOOP-906.txt
    
> Sqoop is always calling ConnectionManager.datetimeToQueryString with TIMESTAMP column type
> ------------------------------------------------------------------------------------------
>
>                 Key: SQOOP-906
>                 URL: https://issues.apache.org/jira/browse/SQOOP-906
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.2
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Raghav Kumar Gautam
>              Labels: newbie
>         Attachments: SQOOP-906.txt, SQOOP-906.txt, SQOOP-906.txt
>
>
> One user on CDH mailing list has risen [issue|https://groups.google.com/a/cloudera.org/forum/?fromgroups=#!topic/cdh-user/YEsRyX2Lu-Q] with incremental import using {{lastmodified}} mode. Sqoop seems to be generating queries including {{TO_TIMESTAMP}} function even for column that is defined as {{Types.DATE}}. This is causing issues with Oracle Connector. The connector seems to be correctly written as appropriate [OracleManager.datetimeToQueryString|https://github.com/apache/sqoop/blob/trunk/src/java/org/apache/sqoop/manager/OracleManager.java#L575] seems to be expected condition based on the column type. Unfortunately the [caller code|https://github.com/apache/sqoop/blob/trunk/src/java/org/apache/sqoop/tool/ImportTool.java#L280] is always passing in {{Types.TIMESTAMP}} value instead of the original value. I think that we should fix that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira