xuzifu666 commented on code in PR #5052:
URL: https://github.com/apache/calcite/pull/5052#discussion_r3487001574


##########
core/src/test/resources/sql/agg.iq:
##########
@@ -4301,4 +4301,128 @@ GROUP BY GROUPING SETS ((deptno), ());
 
 !ok
 
+# [CALCITE-6104] Aggregate function that references outer column should be 
evaluated in outer query
+# The expected results below have been verified in PostgreSQL by running

Review Comment:
   Yes, thanks for pointing this out. The current comment is incorrect, should 
state "These SQL queries are non-standard and their successful execution is 
only guaranteed within Calcite for now" makes perfect sense.
   
   Regarding the limitation where correlated aggregate rewriting is only 
available under modes like LENIENT or BABEL, could log a separate jira to 
resolve this later(If ok I would create a new jira)? This way, we can track 
these changes independently and easily gather any additional feedback. From my 
perspective, this limitation bears little relevance to the current Jira ticket. 
I’d like to hear if you agree with my view on this.



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

Reply via email to