You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Victoria Markman (JIRA)" <ji...@apache.org> on 2015/12/30 20:49:49 UTC
[jira] [Commented] (DRILL-4116) Inconsistent results with datetime
functions on different machines
[ https://issues.apache.org/jira/browse/DRILL-4116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15075357#comment-15075357 ]
Victoria Markman commented on DRILL-4116:
-----------------------------------------
The difference between these two machines is timezone settings.
One of them is on UTC, the other one "America/Los_Angeles" timezones.
{code}
0: jdbc:drill:drillbit=localhost> select * from sys.boot where name like '%timezone%';
+----------------+---------+-------+---------+----------+------------------------+-----------+------------+
| name | kind | type | status | num_val | string_val | bool_val | float_val |
+----------------+---------+-------+---------+----------+------------------------+-----------+------------+
| user.timezone | STRING | BOOT | BOOT | null | "America/Los_Angeles" | null | null |
+----------------+---------+-------+---------+----------+------------------------+-----------+------------+
1 row selected (0.524 seconds)
0: jdbc:drill:drillbit=localhost> 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.512 seconds)
0: jdbc:drill:schema=dfs> select * from sys.boot where name like '%timezone%';
+----------------+---------+-------+---------+----------+-------------+-----------+------------+
| name | kind | type | status | num_val | string_val | bool_val | float_val |
+----------------+---------+-------+---------+----------+-------------+-----------+------------+
| user.timezone | STRING | BOOT | BOOT | null | "UTC" | null | null |
+----------------+---------+-------+---------+----------+-------------+-----------+------------+
1 row selected (3.43 seconds)
0: jdbc:drill:schema=dfs> 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 (2.332 seconds)
{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
> 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.3.4#6332)