Mihai Budiu created CALCITE-7721:
------------------------------------

             Summary: 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


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)

Reply via email to