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

Norman Jordan commented on CALCITE-6572:
----------------------------------------

There are quite a few tests here.

[https://github.com/apache/calcite/blob/main/testkit/src/main/java/org/apache/calcite/test/SqlOperatorTest.java#L4909]

I'll add another test for when the first argument is *NULL* without a cast.

> Calcite TO_CHAR function is incorrectly marked as returning a non-nullable 
> result
> ---------------------------------------------------------------------------------
>
>                 Key: CALCITE-6572
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6572
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.37.0
>            Reporter: Claude Brisson
>            Assignee: Norman Jordan
>            Priority: Minor
>
> We would expect the result of TO_CHAR(<date or timestamp>, <format>) to be 
> nullable, while it is not for now.
>  



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

Reply via email to