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

Caican Cai commented on CALCITE-7461:
-------------------------------------

fix in 
https://github.com/apache/calcite/commit/b52a6b262cb06ae5d70e9203c720545f82ecb70e

> Add @Strict to ByteArrayFunction and ByteArrayLengthFunction
> ------------------------------------------------------------
>
>                 Key: CALCITE-7461
>                 URL: https://issues.apache.org/jira/browse/CALCITE-7461
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 1.41.0
>            Reporter: Caican Cai
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 1.42.0
>
>
> Follow-up to CALCITE-7187.
> The test UDFs ByteArrayFunction andByteArrayLengthFunction in Smalls.java are 
> missing the @Strict annotation.
> Adding @Strict lets Calcite automatically return null when any argument is 
> null, without calling eval. This is the idiomatic way to handle null in 
> Calcite UDFs.



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

Reply via email to