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

Runkang He commented on CALCITE-5957:
-------------------------------------

There is another similar test case fails due to regression.  The test is below:

{code:java}
    f.checkScalar("cast('1241241' as TIMESTAMP)",
        "1241-01-01 00:00:00", "TIMESTAMP(0) NOT NULL");
{code}

Before CALCITE-5678, the test case is passed, and after the change, it fails.

I have no idea whether '1241241' is a valid date or not. Could someone in 
community give some input?


> Valid DATE '1945-2-2' is not accepted due to regression
> -------------------------------------------------------
>
>                 Key: CALCITE-5957
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5957
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.35.0
>            Reporter: Runkang He
>            Priority: Major
>
> DATE '1945-2-2' is a valid date. In CALCITE-5923 when we turn on the result 
> check of `testCastStringToDateTime`, we find that Calcite accepted DATE 
> '1945-2-2' before CALCITE-5678 but not afterwards, so this is a regression 
> that we need to fix.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to