drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitalii Diravka (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DRILL-4116) Inconsistent results with datetime functions on different machines
Date Tue, 13 Jun 2017 10:51:00 GMT

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

Vitalii Diravka edited comment on DRILL-4116 at 6/13/17 10:50 AM:
------------------------------------------------------------------

[~rkins] It looks like the output relies on the local timezone (but should not, the result
should be the same for any timezone for this function). Could you double-check it by querying
(for both machines):
{code}
select datediff(date '1996-03-01', timestamp '1997-02-10 17:32:00.0'), timeofday() from cp.`tpch/lineitem.parquet`
limit 1;
{code}




was (Author: vitalii):
[~rkins] It looks like the output relies on the local timezone (but should not, the result
should be the same for any timezone for this function). Could you double-check it by querying
(for both machines):
{code}
select datediff(date '1996-03-01', timestamp '1997-02-10 17:32:00.0'), tiemofday() from cp.`tpch/lineitem.parquet`
limit 1;
{code}



> Inconsistent results with datetime functions on different machines
> ------------------------------------------------------------------
>
>                 Key: DRILL-4116
>                 URL: https://issues.apache.org/jira/browse/DRILL-4116
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 1.3.0
>            Reporter: Rahul Challapalli
>            Assignee: Vitalii Diravka
>            Priority: Critical
>
> git.commit.id.abbrev=a6a0fc3
> The below query yields different results on different machines
> System 1 :
> {code}
> 0: jdbc:drill:zk=10.10.100.190:5181> select datediff(date '1996-03-01', timestamp
'1997-02-10 17:32:00.0') from cp.`tpch/lineitem.parquet` limit 1;
> +---------+
> | EXPR$0  |
> +---------+
> | -346    |
> +---------+
> 1 row selected (1.57 seconds)
> {code}
> System 2 :
> {code}
> 0: jdbc:drill:drillbit=10.10.88.193> select datediff(date '1996-03-01', timestamp
'1997-02-10 17:32:00.0') from cp.`tpch/lineitem.parquet` limit 1;
> +---------+
> | EXPR$0  |
> +---------+
> | -347    |
> +---------+
> 1 row selected (1.239 seconds)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message