mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 15:01:03 +00:00
13 lines
403 B
MySQL
13 lines
403 B
MySQL
|
DROP TABLE IF EXISTS d_numbers;
|
||
|
CREATE TABLE d_numbers (number UInt32) ENGINE = Distributed(test_cluster_two_shards_localhost, system, numbers, rand());
|
||
|
|
||
|
SET experimental_use_processors = 1;
|
||
|
|
||
|
SELECT '100' AS number FROM d_numbers AS n WHERE n.number = 100 LIMIT 2;
|
||
|
|
||
|
SET distributed_product_mode = 'local';
|
||
|
|
||
|
SELECT '100' AS number FROM d_numbers AS n WHERE n.number = 100 LIMIT 2;
|
||
|
|
||
|
DROP TABLE d_numbers;
|