JiajunBernoulli commented on code in PR #3260:
URL: https://github.com/apache/calcite/pull/3260#discussion_r1230329879
##########
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -3931,6 +3939,34 @@ public static List distinct(List list) {
return min;
}
+ /** Support the ARRAY_PREPEND function. */
+ public static List arrayPrepend(List list, Object element) {
+ final List result = new ArrayList(list.size() + 1);
+ result.add(element);
+ result.addAll(list);
+ return result;
+ }
+
+ /** Support the ARRAY_POSITION function. */
+ public static Long arrayPosition(List list, Object element) {
+ final int index = list.indexOf(element);
+ if (index != -1) {
Review Comment:
Can you resolve 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]