liuyongvs commented on code in PR #3161:
URL: https://github.com/apache/calcite/pull/3161#discussion_r1170668719
##########
core/src/main/java/org/apache/calcite/runtime/SqlFunctions.java:
##########
@@ -3490,6 +3491,12 @@ private static AtomicLong getAtomicLong(String key) {
return atomic;
}
+ /** Support the ARRAY_DISTINCT function. */
+ public static List distinct(List list) {
+ Set result = new LinkedHashSet<>(list);
Review Comment:
this is because the binary compare
https://github.com/apache/spark/blob/816ebaca4a81e0a4369b1ffff43a76e23f5e4271/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/collectionOperations.scala#L4064,
but you can refer flink implement i supports.
https://github.com/apache/flink/commit/b9f6a90a9f942e6a69bb31bbe8baf8ab463156d5
--
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]