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

Jacques Nadeau commented on DRILL-748:
--------------------------------------

Parth, please review

> C++ Client - Support timestamp/date before unix time and handle y2028 problem
> -----------------------------------------------------------------------------
>
>                 Key: DRILL-748
>                 URL: https://issues.apache.org/jira/browse/DRILL-748
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Client - C++
>            Reporter: Xiao Meng
>            Assignee: Parth Chandra
>              Labels: C++, client
>         Attachments: DRILL-748.3.patch
>
>
> Query like:
> {code}
> show files in dfs.`/tmp`
> {code}
> will fail because the timestamp value ’1968-12-31 16:00:00'
> The C++ Drill Client use uint64_t to store the time, any timestamp before 
> unix time “1970-1-1 00:00:00” will fail.
> Query for Test
> {code}
> ./querySubmitter api=async type=sql  
> connectStr=jdbc:drill:local=localhost:31010  query="select cast('-123456-7-8' 
> as date) as negative_date, cast('876543-2-1' as date) as positive_date, 
> timestamptztype(-2038,1,2,3,4,5,6,'UTC') as tz from 
> INFORMATION_SCHEMA.SCHEMATA"
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to