[
https://issues.apache.org/jira/browse/CALCITE-7721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mihai Budiu resolved CALCITE-7721.
----------------------------------
Fix Version/s: 1.43.0
Resolution: Fixed
Fixed in
[https://github.com/apache/calcite/commit/355ed1b10b634c56931f9f84987574688df8bae3]
Thank you for the review [~xuzifu666]
> 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
> Labels: pull-request-available
> Fix For: 1.43.0
>
>
> 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)