mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 17:44:23 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
15 lines
745 B
SQL
15 lines
745 B
SQL
DROP TABLE IF EXISTS big_array;
|
|
CREATE TABLE big_array (x Array(UInt8)) ENGINE=TinyLog;
|
|
SET min_insert_block_size_rows = 0, min_insert_block_size_bytes = 0;
|
|
INSERT INTO big_array SELECT groupArray(number % 255) AS x FROM (SELECT * FROM system.numbers LIMIT 1000000);
|
|
|
|
SELECT count() FROM big_array ARRAY JOIN x;
|
|
SELECT count() FROM big_array ARRAY JOIN x AS y;
|
|
SELECT countIf(has(x, 10)), sum(y) FROM big_array ARRAY JOIN x AS y;
|
|
SELECT countIf(has(x, 10)) FROM big_array ARRAY JOIN x AS y;
|
|
SELECT countIf(has(x, 10)), sum(y) FROM big_array ARRAY JOIN x AS y WHERE 1;
|
|
SELECT countIf(has(x, 10)) FROM big_array ARRAY JOIN x AS y WHERE 1;
|
|
SELECT countIf(has(x, 10)), sum(y) FROM big_array ARRAY JOIN x AS y WHERE has(x,15);
|
|
|
|
DROP TABLE big_array;
|