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


##########
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:
   I don't think you need this method at all. The code generator can just call 
`java.util.List.contains`. You will need to add it to `BuiltInMethod`.



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