calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Remus Rusanu (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CALCITE-1651) Difference in DATE cast between Hive and Calcite
Date Tue, 21 Feb 2017 17:21:44 GMT
Remus Rusanu created CALCITE-1651:
-------------------------------------

             Summary: Difference in DATE cast between Hive and Calcite
                 Key: CALCITE-1651
                 URL: https://issues.apache.org/jira/browse/CALCITE-1651
             Project: Calcite
          Issue Type: Bug
          Components: core
            Reporter: Remus Rusanu
            Assignee: Julian Hyde


Hive {{CAST('<literal>' as DATE)}} is handled by Java's {{Date.valueOf}} and thus expects
{{yyyy-mm-dd}}. In Hive {{SELECT CAST('1' as DATE);}} yields {{NULL}} but in Calcite is {{0001-12-31}}.

I'm opening this as Calcite issue to track HIVE-15708 (migrate to Calcite 1.12) blockers,
not sure if solution will require Calcite changes.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message