goldmedal commented on code in PR #2883:
URL: https://github.com/apache/calcite/pull/2883#discussion_r956554074
##########
core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java:
##########
@@ -6466,6 +6466,32 @@ private void checkLiteral2(String expression, String
expected) {
.withBigQuery().ok(expected);
}
+ @Test void testBigQueryArrayElementAccessing() {
+ final String arrayCtorSql = ""
+ + "SELECT ARRAY[1, 2, 3][1]";
+ final String expectedArrayCtorSql = ""
+ + "SELECT ARRAY[1, 2, 3][ORDINAL(1)]";
+ sql(arrayCtorSql)
+ .withBigQuery().ok(expectedArrayCtorSql);
+
+ // TODO: Got error from
+ // `SqlImplementor`: Need to implement org.apache.calcite.rel.core.Collect
Review Comment:
I tried to add test for `ARRAY_QUERY` but got this error. Should we create
another PR for it?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]