mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
18 lines
775 B
SQL
18 lines
775 B
SQL
DROP TABLE IF EXISTS data_01875_1;
|
|
DROP TABLE IF EXISTS data_01875_2;
|
|
DROP TABLE IF EXISTS data_01875_3;
|
|
|
|
SET compile_expressions=true;
|
|
|
|
-- CREATE TABLE will use global profile with default min_count_to_compile_expression=3
|
|
-- so retry 3 times
|
|
CREATE TABLE data_01875_1 Engine=MergeTree ORDER BY number PARTITION BY bitShiftRight(number, 8) + 1 AS SELECT * FROM numbers(16384);
|
|
CREATE TABLE data_01875_2 Engine=MergeTree ORDER BY number PARTITION BY bitShiftRight(number, 8) + 1 AS SELECT * FROM numbers(16384);
|
|
CREATE TABLE data_01875_3 Engine=MergeTree ORDER BY number PARTITION BY bitShiftRight(number, 8) + 1 AS SELECT * FROM numbers(16384);
|
|
|
|
SELECT number FROM data_01875_3 WHERE number = 999;
|
|
|
|
DROP TABLE data_01875_1;
|
|
DROP TABLE data_01875_2;
|
|
DROP TABLE data_01875_3;
|