morrySnow commented on code in PR #14042:
URL: https://github.com/apache/doris/pull/14042#discussion_r1015574096


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/jobs/batch/AnalyzeRulesJob.java:
##########
@@ -55,7 +56,8 @@ public AnalyzeRulesJob(CascadesContext cascadesContext, 
Optional<Scope> scope) {
                         new ProjectToGlobalAggregate()
                 )),
                 topDownBatch(ImmutableList.of(
-                        new ResolveAggregateFunctions()
+                        new ResolveAggregateFunctions(),
+                        new ResolveSortProject()

Review Comment:
   it is not a bind action. actually, this rule add the projections need by 
LogicalSort to it's child Project's projections and add another Project on the 
top of itself to ensure the result is correct



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to