Added a test for what was always working

This commit is contained in:
Alexey Milovidov 2020-11-25 00:00:55 +03:00
parent 828d27d801
commit 99073c26ee
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1 @@
1000000

View File

@ -0,0 +1,4 @@
-- Unneeded column is removed from subquery.
SELECT count() FROM (SELECT number, groupArray(repeat(toString(number), 1000000)) FROM numbers(1000000) GROUP BY number);
-- Unneeded column cannot be removed from subquery and the query is out of memory
SELECT count() FROM (SELECT number, groupArray(repeat(toString(number), 1000000)) AS agg FROM numbers(1000000) GROUP BY number HAVING notEmpty(agg)); -- { serverError 241 }