mihaibudiu commented on code in PR #4699:
URL: https://github.com/apache/calcite/pull/4699#discussion_r2636582398


##########
linq4j/src/main/java/org/apache/calcite/linq4j/function/Functions.java:
##########
@@ -623,10 +620,37 @@ public static int compareLists(List<?> b0, List<?> b1) {
     return Integer.compare(b0.size(), b1.size());
   }
 
+  /**
+   * Compares two maps.
+   *
+   * <p>Since maps in Calcite are implemented using {@link 
java.util.LinkedHashMap},

Review Comment:
   yes, linkedhashmap retains insertion order, but that order is not defined in 
general for SQL, e.g., `SELECT MAP(SELECT a, b FROM x)` does not guarantee a 
specific row order.
   
   You can leave it as it is, but the results are non-deterministic as defined.



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