walterddr commented on code in PR #9582:
URL: https://github.com/apache/pinot/pull/9582#discussion_r996319132


##########
pinot-common/src/main/java/org/apache/pinot/sql/parsers/rewriter/NonAggregationGroupByToDistinctQueryRewriter.java:
##########
@@ -57,6 +57,13 @@ public PinotQuery rewrite(PinotQuery pinotQuery) {
       Set<String> selectIdentifiers = 
CalciteSqlParser.extractIdentifiers(pinotQuery.getSelectList(), true);
       Set<String> groupByIdentifiers = 
CalciteSqlParser.extractIdentifiers(pinotQuery.getGroupByList(), true);
       if (groupByIdentifiers.containsAll(selectIdentifiers)) {
+        // TODO: need to patch DistinctDataTableReducer to remove these 
excessive columns

Review Comment:
   made changes accordingly, let's see the result



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