You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Krystal (JIRA)" <ji...@apache.org> on 2014/06/12 00:25:04 UTC

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

Krystal created DRILL-962:
-----------------------------

             Summary: = 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


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)