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/03/06 22:22:38 UTC

[jira] [Commented] (DRILL-2394) extracted hour from now() and current_time are not equal

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

Chun Chang commented on DRILL-2394:
-----------------------------------

Could be the same for localtimestamp:

{code}
0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select extract(hour from now())=extract(hour from localtimestamp) from sys.drillbits limit 1;
+------------+
|   EXPR$0   |
+------------+
| false      |
+------------+
1 row selected (0.048 seconds)
0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select extract(hour from now()), extract(hour from localtimestamp) from sys.drillbits limit 1;
+------------+------------+
|   EXPR$0   |   EXPR$1   |
+------------+------------+
| 21         | 13         |
+------------+------------+
{code}

> extracted hour from now() and current_time are not equal
> --------------------------------------------------------
>
>                 Key: DRILL-2394
>                 URL: https://issues.apache.org/jira/browse/DRILL-2394
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>    Affects Versions: 0.8.0
>            Reporter: Chun Chang
>            Assignee: Mehant Baid
>            Priority: Critical
>
> #Wed Mar 04 01:23:42 EST 2015
> git.commit.id.abbrev=71b6bfe
> The extracted hour from now() and current_time should be equal, but not:
> {code}
> 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select extract(hour from now())=extract(hour from current_time) from sys.drillbits limit 1;
> +------------+
> |   EXPR$0   |
> +------------+
> | false      |
> +------------+
> 1 row selected (0.069 seconds)
> 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select extract(hour from now()), extract(hour from current_time) from sys.drillbits limit 1;
> +------------+------------+
> |   EXPR$0   |   EXPR$1   |
> +------------+------------+
> | 0          | 16         |
> +------------+------------+
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)