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

Mihai Budiu commented on CALCITE-6707:
--------------------------------------

Maybe you want to make a separate issue with this.
One thing we could do is cross-reference the type inference with the NullPolicy 
and make sure they are consistent.

> Type inference for CHR function is wrong
> ----------------------------------------
>
>                 Key: CALCITE-6707
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6707
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.38.0
>            Reporter: Mihai Budiu
>            Assignee: Mihai Budiu
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.39.0
>
>
> The return type of CHR is always CHAR(1), and never nullable.
> However, if the argument of CHR is nullable, the result should be nullable as 
> well.



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

Reply via email to