You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/09/07 12:13:05 UTC
[GitHub] [doris] zenoyang commented on a diff in pull request #12313: [fix](grouping sets) columns in grouping sets should not be in selectstmt‘s AggFunc
zenoyang commented on code in PR #12313:
URL: https://github.com/apache/doris/pull/12313#discussion_r964765694
##########
fe/fe-core/src/main/java/org/apache/doris/analysis/SelectStmt.java:
##########
@@ -444,13 +444,18 @@ public void analyze(Analyzer analyzer) throws UserException {
}
}
if (groupByClause != null && groupByClause.isGroupByExtension()) {
+ ArrayList<Expr> aggFnExprList = new ArrayList<>();
for (SelectListItem item : selectList.getItems()) {
- if (item.getExpr() instanceof FunctionCallExpr && item.getExpr().fn instanceof AggregateFunction) {
+ aggFnExprList.clear();
+ getAggregateFnExpr(item.getExpr(), aggFnExprList);
+ if (!aggFnExprList.isEmpty()) {
Review Comment:
done
--
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-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org