[
https://issues.apache.org/jira/browse/CALCITE-6572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde updated CALCITE-6572:
---------------------------------
Summary: Add more tests for NULL arguments to TO_CHAR functions (was: Add
more tests for NULL result of TO_CHAR PostgreSQL function)
> 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
>
> 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)