[
https://issues.apache.org/jira/browse/CALCITE-7721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18104866#comment-18104866
]
Mihai Budiu commented on CALCITE-7721:
--------------------------------------
I will wait for CALCITE-7720 to be merged to submit this fix.
> CAST of a ROW ARRAY element raises NullPointerException
> -------------------------------------------------------
>
> Key: CALCITE-7721
> URL: https://issues.apache.org/jira/browse/CALCITE-7721
> Project: Calcite
> Issue Type: Bug
> Components: core
> Affects Versions: 1.42.0
> Reporter: Mihai Budiu
> Assignee: Mihai Budiu
> Priority: Minor
>
> The following query throws an exception:
> {code:java}
> select cast(t.arr[1] as row(x integer, y integer)) as v
> from (select ARRAY[ROW(1, 2)] as arr) as t;{code}
> This is in the Enumerable code generation layer.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)