mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test for what was always working
This commit is contained in:
parent
828d27d801
commit
99073c26ee
@ -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