You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Mehant Baid (JIRA)" <ji...@apache.org> on 2014/06/17 11:43:01 UTC

[jira] [Commented] (DRILL-962) = or <> filter with date against timestamp columns fail

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

Mehant Baid commented on DRILL-962:
-----------------------------------

Supporting this comparison needs changes to Optiq, moving it to post beta.

> = or <> filter with date against timestamp columns fail
> -------------------------------------------------------
>
>                 Key: DRILL-962
>                 URL: https://issues.apache.org/jira/browse/DRILL-962
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Functions - Drill
>            Reporter: Krystal
>            Assignee: Mehant Baid
>             Fix For: Future
>
>
> git.commit.id.abbrev=27a9c98
> git.build.time=10.06.2014 @ 21\:15\:17 PDT
> 0: jdbc:drill:schema=dfs> select cast(name as varchar(30)), cast(create_time as timestamp) create_time from student where cast(create_time as timestamp) = date '2014-05-31';
> message: "Failure while parsing sql. < ValidationException:[ org.eigenbase.util.EigenbaseContextException: From line 1, column 97 to line 1, column 146 ] < EigenbaseContextException:[ From line 1, column 97 to line 1, column 146 ] < SqlValidatorException:[ Cannot apply '=' to arguments of type '<TIMESTAMP(0)> = <DATE>'. Supported form(s): '<COMPARABLE_TYPE> = <COMPARABLE_TYPE>' ]"
> ]
> The query run successfully in postgres and oracle.  Looks like these 2 rdbms implicitly convert the date to timestamp.



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