[ 
https://issues.apache.org/jira/browse/CALCITE-6572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mihai Budiu resolved CALCITE-6572.
----------------------------------
    Resolution: Fixed

Fixed in 
https://github.com/apache/calcite/commit/48f0424c1ae5e2152a07ca5eb2c1d835371c24dc
Thank you for the contribution, [~njordan], and for the reviews 
[~julianhyde][~caicancai][~nobigo]

> Add more tests for NULL arguments to TO_CHAR functions
> ------------------------------------------------------
>
>                 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
>              Labels: pull-request-available
>             Fix For: 1.38.0
>
>
> When the argument to the {{TO_CHAR(<date or timestamp>, <format>)}} function 
> is nullable, the return type should be nullable, because a NULL value to 
> either argument will return a NULL result. But currently the type is derived 
> as NOT NULL.
> *Update*: The type derivation was solved in CALCITE-6358, but there are still 
> no unit tests. The remaining task is to add tests for both the TO_CHAR 
> function in the Oracle/Redshift/MySQL libraries and the TO_CHAR function in 
> the Postgres library.



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

Reply via email to