zstan commented on code in PR #2392: URL: https://github.com/apache/ignite-3/pull/2392#discussion_r1285455274
########## modules/runner/src/integrationTest/sql/subquery/any_all/test_uncorrelated_all_subquery.test: ########## @@ -149,10 +149,30 @@ NULL false 3 false query IR -SELECT (SELECT MAX(i) FROM integers) AS k, SUM(i) FROM integers GROUP BY 1; +SELECT (SELECT MAX(i) FROM integers) AS k, SUM(i) FROM integers GROUP BY k; ---- 3 6.000000 +# subqueries in GROUP BY clause +query TR +SELECT i >= ALL(SELECT i FROM integers WHERE i IS NOT NULL) AS k, SUM(i) FROM integers GROUP BY k ORDER BY k NULLS FIRST; +---- +NULL NULL +false 3.000000 +true 3.000000 + +query TR +SELECT i >= ALL(SELECT MIN(i) FROM integers WHERE i IS NOT NULL) AS k, SUM(i) FROM integers GROUP BY k ORDER BY k NULLS FIRST; +---- +NULL NULL +true 6.000000 + +# subquery in HAVING +query IR +SELECT i % 2 AS k, SUM(i) FROM integers GROUP BY k HAVING SUM(i) > (SELECT MAX(i) FROM integers) +---- +1 4.000000 + Review Comment: I can`t find test : SELECT i, i >= ALL(SELECT i FROM integers) FROM integers ORDER BY i from deleted "test_ignore" did i miss smth ? -- 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]
