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

Dmitry Sysolyatin commented on CALCITE-5137:
--------------------------------------------

PR - https://github.com/apache/calcite/pull/2793

> EnumerableUncollect throws NPE if input has ((List) null)
> ---------------------------------------------------------
>
>                 Key: CALCITE-5137
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5137
>             Project: Calcite
>          Issue Type: Bug
>          Components: core, linq4j
>            Reporter: Dmitry Sysolyatin
>            Assignee: Dmitry Sysolyatin
>            Priority: Major
>
> EnumerableUncollect throws NPE when an input has element = ((List) null)
> Example:
> {code}
> SELECT * FROM UNNEST(CAST(null AS INTEGER ARRAY))
> {code}
> In a real situation, it can appear if to use left join. For example:
> {code}
> SELECT ARRAY(SELECT * FROM UNNEST(t.x)) FROM (VALUES(1)) LEFT JOIN (SELECT 
> ARRAY[1] as x, 2 as y) t ON t.y = 1
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to