drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xiao Meng (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DRILL-748) C++ Client - Support timestamp/date before unix time and handle y2028 problem
Date Tue, 03 Jun 2014 02:30:02 GMT

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

Xiao Meng updated DRILL-748:
----------------------------

    Description: 
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}



  was:
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




> 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: Sub-task
>          Components: Client - C++
>            Reporter: Xiao Meng
>            Assignee: Xiao Meng
>              Labels: C++, client
>         Attachments: DRILL-748.1.patch.txt
>
>
> 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)

Mime
View raw message