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


##########
pinot-query-runtime/src/test/resources/queries/SelectExpressions.json:
##########
@@ -36,7 +36,8 @@
       { "sql": "SELECT intCol as \"value\", doubleCol + floatCol AS \"sum\" 
FROM {tbl1}"},
       { "sql": "SELECT intCol as \"from\" FROM {tbl1}"},
       { "sql": "SELECT intCol as key, SUM(doubleCol + floatCol) AS aggSum FROM 
{tbl1} GROUP BY intCol"},
-      { "sql": "SELECT a.intCol as key, SUM(a.doubleCol + b.intCol) AS aggSum 
FROM {tbl1} AS a JOIN {tbl2} AS b ON a.intCol = b.intCol GROUP BY a.intCol"}
+      { "sql": "SELECT intCol, SUM(avgVal) FROM (SELECT strCol, intCol, 
AVG(doubleCol) AS avgVal FROM {tbl1} GROUP BY intCol, strCol) GROUP BY intCol"},
+      { "sql": "SELECT strCol, MAX(sumVal), MAX(sumVal + avgVal) AS transVal 
FROM (SELECT strCol, intCol, SUM(floatCol + 2 * intCol) AS sumVal, 
AVG(doubleCol) AS avgVal FROM {tbl1} GROUP BY strCol, intCol) GROUP BY strCol 
ORDER BY MAX(sumVal)" }

Review Comment:
   these 2 statements previously causes project and agg node visit to not 
return the right partition keys. now it is fixed. CC @ankitsultana 



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