You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Chun Chang (JIRA)" <ji...@apache.org> on 2015/04/24 23:32:38 UTC
[jira] [Closed] (DRILL-2399) extract hour from current_date gives
non-zero value
[ https://issues.apache.org/jira/browse/DRILL-2399?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chun Chang closed DRILL-2399.
-----------------------------
Assignee: Chun Chang (was: Mehant Baid)
[root@qa-node120 resources]# cat Functional/Passing/datetime/datetime171.q
select extract(hour from current_date)=0 from sys.drillbits limit 1;
{code}
0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select extract(hour from current_date)=0 from sys.drillbits limit 1;
+------------+
| EXPR$0 |
+------------+
| true |
+------------+
{code}
> extract hour from current_date gives non-zero value
> ---------------------------------------------------
>
> Key: DRILL-2399
> URL: https://issues.apache.org/jira/browse/DRILL-2399
> Project: Apache Drill
> Issue Type: Bug
> Components: Functions - Drill
> Affects Versions: 0.8.0
> Reporter: Chun Chang
> Assignee: Chun Chang
> Fix For: 0.9.0
>
>
> #Wed Mar 04 01:23:42 EST 2015
> git.commit.id.abbrev=71b6bfe
> The hour extract from current_date should be zero, but not as of now.
> {code}
> 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select extract(hour from current_date)=0 from sys.drillbits limit 1;
> +------------+
> | EXPR$0 |
> +------------+
> | false |
> +------------+
> 1 row selected (0.033 seconds)
> 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select extract(hour from current_date) from sys.drillbits limit 1;
> +------------+
> | EXPR$0 |
> +------------+
> | 8 |
> +------------+
> {code}
> Here is what postgres' result:
> {code}
> foodmart=# select extract(hour from current_date);
> date_part
> -----------
> 0
> (1 row)
> foodmart=# select current_date;
> date
> ------------
> 2015-03-06
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)