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

Zhen Chen commented on CALCITE-7461:
------------------------------------

Thanks for your review [~hongyuguo] 

> 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
>            Assignee: 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