libenchao commented on code in PR #2974:
URL: https://github.com/apache/calcite/pull/2974#discussion_r1070491944
##
core/src/test/resources/sql/agg.iq:
##
@@ -3467,4 +3467,38 @@ order by ename, deptno;
!ok
+# Test cases for [CALCITE-5209] ArrayIndexOutOfBoundsException duri
libenchao commented on code in PR #2974:
URL: https://github.com/apache/calcite/pull/2974#discussion_r1038794437
##
core/src/test/resources/sql/agg.iq:
##
@@ -3467,4 +3467,38 @@ order by ename, deptno;
!ok
+# Test cases for [CALCITE-5209] ArrayIndexOutOfBoundsException duri
libenchao commented on code in PR #2974:
URL: https://github.com/apache/calcite/pull/2974#discussion_r1038789810
##
core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java:
##
@@ -6374,10 +6390,13 @@ private static class SubQuery {
final SqlNode node;
fina