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

Jarek Jarcec Cecho commented on SQOOP-1765:
-------------------------------------------

Sure, I think that we have a lot of examples on the [Sqoop2 Intermediate 
representation wiki 
page|https://cwiki.apache.org/confluence/display/SQOOP/Sqoop2+Intermediate+representation],
 to sum it up:

* Datetime {{YYYY-MM-DD HH:MM:DD\[.ZZZZZZ\]\[+/-XX\]}}
** '2014-02-02 14:12:12'
** '2014-02-02 14:12:12.123456'
** '2014-02-02 14:12:12.123456-02'
** '2014-02-02 14:12:12+02'
* Date {{YYYY-MM-DD\[+/-XX\]}}
** I suddenly don't see why we would have timezone for a date. Neither of the 
explored tools need that and I don't think that it make much sense. I think 
that it might be copy&paste error.
** '2014-02-02'
* TIME {{HH:MM:DD\[.ZZZZZZ\]\[+/-XX\]}}
** The same argument as before for date. I don't see a need for timezone 
suddenly. Neither of the explored tools is using that and I think that it might 
be a copy&paste error.
** '14:12:12'
** '14:12:12.123456'
* TIMESTAMP
** For representation perspective the same as DATETIME

They are all strings, so they should be enclosed in single quotes.

> Time /Timestamp format support for IDF
> --------------------------------------
>
>                 Key: SQOOP-1765
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1765
>             Project: Sqoop
>          Issue Type: Sub-task
>          Components: sqoop2-framework
>            Reporter: Veena Basavaraj
>            Assignee: Veena Basavaraj
>             Fix For: 1.99.5
>
>
> Based on the intermediate format proposal the correct Time format should be: 
> HH:MM:DD[.ZZZZZZ][+/-XX]
> https://cwiki.apache.org/confluence/display/SQOOP/Sqoop2+Intermediate+representation#Sqoop2Intermediaterepresentation-Intermediateformatrepresentationproposal
> Can we add the missing parts?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to