rubenada commented on code in PR #5370:
URL: https://github.com/apache/calcite/pull/5370#discussion_r4457806301


##########
core/src/main/java/org/apache/calcite/adapter/enumerable/PhysTypeImpl.java:
##########
@@ -544,6 +530,36 @@ private Expression generateComparator(RelCollation 
collation,
     });
   }
 
+  private static boolean isComposite(RelDataType type) {
+    return type.isStruct() || type.getComponentType() != null;
+  }
+
+  /** ROW and ARRAY sort keys (including SEARCH columns) are not Comparable.
+   * Use the same element-wise comparator as the single-key sort path. */
+  private static Expression generateComparison(RelDataType type, String method,

Review Comment:
   IIUC this is an unrelated bug unveiled by this PR, right? Have you searched 
in there is a Jira ticket about this problem? Should we consider fixing this 
separately and independently from this PR, with the corresponding non-SEARCH 
related test cases (multi-key sort, LIMIT-sort, window or merge join on an 
ARRAY or ROW column IIANM)



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