morrySnow commented on code in PR #10647: URL: https://github.com/apache/doris/pull/10647#discussion_r914581350
########## fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java: ########## @@ -693,6 +708,37 @@ private void computeTabletInfo() throws UserException { } } + /** + * Check Parent sort node can push down to child olap scan. Review Comment: add more comment to explain why use prefix matching ########## fe/fe-core/src/main/java/org/apache/doris/planner/OriginalPlanner.java: ########## @@ -197,6 +197,28 @@ public void createPlanFragments(StatementBase statement, Analyzer analyzer, TQue fragments = distributedPlanner.createPlanFragments(singleNodePlan); } + // Push sort node down to the bottom of olapscan. + for (PlanFragment fragment : fragments) { + if (fragment.getPlanRoot() instanceof SortNode) { Review Comment: we need to find a pattern sort(scan), so should use recursive way to do that -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org