mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Also add stateless test to illustrate the issue more clear
This commit is contained in:
parent
cf483b7ecc
commit
29189d4276
7
tests/queries/0_stateless/01115_prewhere_array_join.sql
Normal file
7
tests/queries/0_stateless/01115_prewhere_array_join.sql
Normal file
@ -0,0 +1,7 @@
|
||||
DROP TABLE IF EXISTS prewhere;
|
||||
|
||||
CREATE TABLE prewhere (light UInt8, heavy String) ENGINE = MergeTree ORDER BY tuple();
|
||||
INSERT INTO prewhere SELECT 0, randomPrintableASCII(10000) FROM numbers(10000);
|
||||
SELECT arrayJoin([light]) != 0 AS cond, length(heavy) FROM prewhere WHERE light != 0 AND cond != 0;
|
||||
|
||||
DROP TABLE prewhere;
|
Loading…
Reference in New Issue
Block a user