liuyongvs commented on code in PR #3207:
URL: https://github.com/apache/calcite/pull/3207#discussion_r1199956329


##########
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -3791,6 +3791,12 @@ private static AtomicLong getAtomicLong(String key) {
     return atomic;
   }
 
+  /** Support the ARRAY_CONTAINS function. */
+  public static boolean contains(List list, Object element) {
+    final Set set = new HashSet(list);

Review Comment:
   @julianhyde I have considered this, but it can't. because the array_contains 
have 2 args instead of 1 in java.util.List.contains



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