You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Dmitry Sysolyatin (Jira)" <ji...@apache.org> on 2022/05/07 19:20:00 UTC
[jira] [Created] (CALCITE-5137) EnumerableUncollect throws NPE if input has ((List) null)
Dmitry Sysolyatin created CALCITE-5137:
------------------------------------------
Summary: 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
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)