xuzifu666 commented on code in PR #4194:
URL: https://github.com/apache/calcite/pull/4194#discussion_r1956182548


##########
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -6524,6 +6524,15 @@ public static List reverse(List list) {
     return list;
   }
 
+  /** Support the ARRAY_SLICE function. */
+  public static List arraySlice(List list, int start, int length) {
+    // return empty list if start/length are out of range of the array

Review Comment:
   Would return empty array,related to : 
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFArraySlice.java



-- 
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]

Reply via email to