drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Nadeau (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-1140) Casting of a timestamp to time fails
Date Mon, 21 Jul 2014 02:49:40 GMT

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

Jacques Nadeau commented on DRILL-1140:
---------------------------------------

fixed by e5c2da0 or earlier

> Casting of a timestamp to time fails
> ------------------------------------
>
>                 Key: DRILL-1140
>                 URL: https://issues.apache.org/jira/browse/DRILL-1140
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Krystal
>            Assignee: DrillCommitter
>         Attachments: DRILL-1140.patch
>
>
> git.commit.id.abbrev=699851b
> 0: jdbc:drill:schema=dfs> select cast(create_time as timestamp) from voter where voter_id=1;
> +------------+
> |   EXPR$0   |
> +------------+
> | 2014-05-25 03:41:54.0 |
> +------------+
> 0: jdbc:drill:schema=dfs> select cast(create_time as time) from voter where voter_id=1;
> message: "Failure while running fragment. < IllegalArgumentException:[ Invalid format:
"2014-05-25 03:41:54" is malformed at "14-05-25 03:41:54" ]"
> The same query from oracle and postgres return the time portion of the timestamp.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message