mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Merge pull request #17375 from ClickHouse/always-working-test
Added a test for what was always working
This commit is contained in:
commit
c438b43892
@ -0,0 +1 @@
|
||||
1000000
|
4
tests/queries/0_stateless/01586_columns_pruning.sql
Normal file
4
tests/queries/0_stateless/01586_columns_pruning.sql
Normal 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 }
|
Loading…
Reference in New Issue
Block a user