mihaibudiu commented on code in PR #5052: URL: https://github.com/apache/calcite/pull/5052#discussion_r3546160879
########## core/src/test/resources/sql/agg.iq: ########## @@ -4428,6 +4428,55 @@ FROM aa; !ok +# An expression over aggregates of different outer columns is lifted to the +# outer query as a whole: sum(a) = 1+2+3 = 6, sum(b) = 10+20+30 = 60, so the +# result is a single row 66. +WITH aa (a, b) AS (VALUES (1, 10), (2, 20), (3, 30)), + xx (x) AS (VALUES 100, 200, 300) +SELECT (SELECT sum(a) + sum(b) FROM xx LIMIT 1) AS s Review Comment: Can we also have a test for `SUM(a + b)`? -- 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]
