xiedeyantu commented on code in PR #4404:
URL: https://github.com/apache/calcite/pull/4404#discussion_r2116970231
##########
core/src/main/java/org/apache/calcite/adapter/enumerable/EnumerableLimitSortRule.java:
##########
@@ -40,6 +40,9 @@ public EnumerableLimitSortRule(Config config) {
@Override public void onMatch(RelOptRuleCall call) {
final Sort sort = call.rel(0);
+ if (sort.fetch == null || sort.getSortExps().isEmpty()) {
Review Comment:
This PR will generate an exception if the user only uses
ElementerableLimitSortRule. I understand that ElementerableLimitSort should not
be a replacement, similar to TopN in other databases. Or in other words, do we
need to implement an ElementerableTopN? But I always feel that
ElementerableTopN and ElementerableLimitSort are the same operator.
--
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]