[ https://issues.apache.org/jira/browse/CALCITE-5127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stamatis Zampetakis resolved CALCITE-5127. ------------------------------------------ Resolution: Fixed Fixed in https://github.com/apache/calcite/commit/c2407f59c32d1690d16b641d556bb27f8f1783ac. [~libenchao] many thanks for the great work, discussions, patience and persistence to pull this ticket through the end; it is a valuable contribution to Calcite. [~korlov] thanks for the initial work and the various discussions on the topic; I added you as co-author in the commit. [~dmsysolyatin] thanks for reporting the problem and following up to provide any additional details requested. [~julianhyde] thanks for the extra pair of eyes and helpful pointers to move this forward. > Support correlation variables in Project > ---------------------------------------- > > Key: CALCITE-5127 > URL: https://issues.apache.org/jira/browse/CALCITE-5127 > Project: Calcite > Issue Type: Bug > Components: core > Reporter: Dmitry Sysolyatin > Assignee: Benchao Li > Priority: Major > Labels: pull-request-available > Fix For: 1.33.0 > > Time Spent: 3h 50m > Remaining Estimate: 0h > > The following queries fail: > {code} > SELECT ARRAY(SELECT s.x) FROM (SELECT ARRAY[1,2,3] as x) s; > SELECT ARRAY(SELECT * FROM UNNEST(s.x) y) FROM (SELECT ARRAY[1,2,3] as x) s; > SELECT (SELECT CARDINALITY(s.x) LIMIT 1) FROM (SELECT ARRAY[1,2,3] as x) s; > > {code} > With exception: > {code} > Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to > java.util.List > {code} > You can find test cases for this task in > https://github.com/apache/calcite/commit/27e68ded2c3bea7d7af73dd1dc156e46fb3591a8 -- This message was sent by Atlassian Jira (v8.20.10#820010)