[
https://issues.apache.org/jira/browse/DRILL-748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14030275#comment-14030275
]
Xiao Meng commented on DRILL-748:
---------------------------------
Updated. Fix linux build as Parth pointed out.
> 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
> Fix For: 1.0.0-BETA1
>
> Attachments: DRILL-748.5.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)