zhannngchen commented on a change in pull request #8623:
URL: https://github.com/apache/incubator-doris/pull/8623#discussion_r833965609



##########
File path: fe/fe-core/src/main/java/org/apache/doris/analysis/AggregateInfo.java
##########
@@ -452,10 +452,14 @@ private void createMergeAggInfo(Analyzer analyzer)  {
         for (int i = 0; i < getAggregateExprs().size(); ++i) {
             FunctionCallExpr inputExpr = getAggregateExprs().get(i);
             Preconditions.checkState(inputExpr.isAggregateFunction());
-            Expr aggExprParam =
-                    new SlotRef(inputDesc.getSlots().get(i + 
getGroupingExprs().size()));
+            List<Expr> paramExprs = new ArrayList<>();
+            if (inputExpr.fn.functionName().equals("max_by")) {

Review comment:
       It's a tricky workaround, won't merge to production code.




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