You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "MinJi Kim (JIRA)" <ji...@apache.org> on 2017/06/03 00:17:04 UTC
[jira] [Updated] (CALCITE-1829) Add TIME/TIMESTAMP/DATE datatype
handling to RexImplicationChecker
[ https://issues.apache.org/jira/browse/CALCITE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
MinJi Kim updated CALCITE-1829:
-------------------------------
Description:
In RexImplicationChecker, we support a lot of operators and types, but it looks like time/timestamp/date datatypes are not supported. In RexImplicationCheckerTest, there are tests for each of the aforementioned datatypes, but are disabled.
{code}
RexImplicationCheckerTest.testSimpleDate
RexImplicationCheckerTest.testSimpleTime
RexImplicationCheckerTest.testSimpleTimestamp
{code}
Running these ignored tests, I get the following error messages.
{code}
2017-06-02 17:13:10,028 [main] WARN - Exception thrown while checking if => >=($8, 2017-06-03): java.sql.Date cannot be cast to java.lang.Integer
2017-06-02 17:13:10,075 [main] WARN - Exception thrown while checking if => <=($9, 00:13:10): java.util.GregorianCalendar cannot be cast to java.lang.Long
2017-06-02 17:13:10,100 [main] WARN - Exception thrown while checking if => <=($9, 2017-06-03 00:13:10): java.util.GregorianCalendar cannot be cast to java.lang.Long
{code}
was:
In RexImplicationChecker, we support a lot of operators and types, but it looks like time/timestamp/date datatypes are not supported. In RexImplicationCheckerTest, there are tests for each of the aforementioned datatypes, but are disabled.
{code}
RexImplicationCheckerTest.testSimpleDate, testSimpleTime, testSimpleTimestamp
{code}
Running these ignored tests, I get the following error messages.
{code}
2017-06-02 17:13:10,028 [main] WARN - Exception thrown while checking if => >=($8, 2017-06-03): java.sql.Date cannot be cast to java.lang.Integer
2017-06-02 17:13:10,075 [main] WARN - Exception thrown while checking if => <=($9, 00:13:10): java.util.GregorianCalendar cannot be cast to java.lang.Long
2017-06-02 17:13:10,100 [main] WARN - Exception thrown while checking if => <=($9, 2017-06-03 00:13:10): java.util.GregorianCalendar cannot be cast to java.lang.Long
{code}
> Add TIME/TIMESTAMP/DATE datatype handling to RexImplicationChecker
> ------------------------------------------------------------------
>
> Key: CALCITE-1829
> URL: https://issues.apache.org/jira/browse/CALCITE-1829
> Project: Calcite
> Issue Type: Bug
> Reporter: MinJi Kim
> Assignee: Julian Hyde
>
> In RexImplicationChecker, we support a lot of operators and types, but it looks like time/timestamp/date datatypes are not supported. In RexImplicationCheckerTest, there are tests for each of the aforementioned datatypes, but are disabled.
> {code}
> RexImplicationCheckerTest.testSimpleDate
> RexImplicationCheckerTest.testSimpleTime
> RexImplicationCheckerTest.testSimpleTimestamp
> {code}
> Running these ignored tests, I get the following error messages.
> {code}
> 2017-06-02 17:13:10,028 [main] WARN - Exception thrown while checking if => >=($8, 2017-06-03): java.sql.Date cannot be cast to java.lang.Integer
> 2017-06-02 17:13:10,075 [main] WARN - Exception thrown while checking if => <=($9, 00:13:10): java.util.GregorianCalendar cannot be cast to java.lang.Long
> 2017-06-02 17:13:10,100 [main] WARN - Exception thrown while checking if => <=($9, 2017-06-03 00:13:10): java.util.GregorianCalendar cannot be cast to java.lang.Long
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)