Merge pull request #17375 from ClickHouse/always-working-test

Added a test for what was always working
This commit is contained in:
alexey-milovidov 2020-11-26 03:29:14 +03:00 committed by GitHub
commit c438b43892
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 }