hotienvu commented on a change in pull request #6186:
URL: https://github.com/apache/incubator-pinot/pull/6186#discussion_r511549720
##########
File path:
pinot-common/src/main/java/org/apache/pinot/sql/parsers/CalciteSqlParser.java
##########
@@ -187,6 +174,22 @@ private static void validateGroupByClause(PinotQuery
pinotQuery)
}
}
+ private static boolean expressionOutsideGroupByList(Expression expr,
Set<Expression> groupByExprs) {
+ if (expr.getType() == ExpressionType.LITERAL ||
isAggregateExpression(expr) || groupByExprs.contains(expr)) {
Review comment:
Hi @fx19880617, it will handle all expression types (including nested).
Expression overrides equals() & hashCode() so this should work for arbitrary
Expression
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]