mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-15 20:24:07 +00:00
8 lines
321 B
MySQL
8 lines
321 B
MySQL
|
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;
|