You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Mihai Budiu (Jira)" <ji...@apache.org> on 2024/11/08 00:24:00 UTC
[jira] [Assigned] (CALCITE-6680) RexImpTable erroneously declares NullPolicy.NONE for IS_EMPTY
[ https://issues.apache.org/jira/browse/CALCITE-6680?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mihai Budiu reassigned CALCITE-6680:
------------------------------------
Assignee: Mihai Budiu
> RexImpTable erroneously declares NullPolicy.NONE for IS_EMPTY
> -------------------------------------------------------------
>
> Key: CALCITE-6680
> URL: https://issues.apache.org/jira/browse/CALCITE-6680
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Chris Dennis
> Assignee: Mihai Budiu
> Priority: Major
> Attachments: is-empty-nullable.patch
>
>
> RexImpTable implements {{IS EMPTY}} and {{IS NOT EMPTY}} using {{Collections.isEmpty()}} but declares them as {{NullPolicy.NONE}}. This causes nullable array and map columns to throw NPE at execution time when hitting null values. I strongly suspect that other collection operators are similarly misclassified and would run in to issues is used against nullable types.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)