calcite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Hyde (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CALCITE-1623) Make sure the Calendar inside DATE, TIME and TIMESTAMP literals has timezone UTC
Date Wed, 08 Feb 2017 21:04:41 GMT
Julian Hyde created CALCITE-1623:
------------------------------------

             Summary: Make sure the Calendar inside DATE, TIME and TIMESTAMP literals has
timezone UTC
                 Key: CALCITE-1623
                 URL: https://issues.apache.org/jira/browse/CALCITE-1623
             Project: Calcite
          Issue Type: Bug
            Reporter: Julian Hyde
            Assignee: Julian Hyde


At query preparation time, Calcite uses a Calendar to hold the value of DATE, TIME, TIMESTAMP
literals. It assumes that Calendar has a UTC (GMT) time zone. Bad things probably happen if
it does not. We should check, and throw IllegalArgumentException if not.

(For the record, Calendar is not used at run time. Those values become int or long, or Integer
or Long if nullable.)



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

Mime
View raw message