fx19880617 commented on a change in pull request #5014: fixing converting
PinotQuery to BrokerRequest for group by clause with selections
URL: https://github.com/apache/incubator-pinot/pull/5014#discussion_r370819849
##########
File path:
pinot-common/src/main/java/org/apache/pinot/sql/parsers/CalciteSqlParser.java
##########
@@ -92,6 +94,34 @@ public static PinotQuery compileToPinotQuery(String sql)
return pinotQuery;
}
+ static void validate(PinotQuery pinotQuery)
+ throws SqlCompilationException {
+ // Sanity check group by query: All identifiers in selection list should
be also included in group by list.
Review comment:
GroupBy clause could be non-aggregate expressions, like dateConverter(),
ADD(...), SUB(...)
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]