mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
16 lines
374 B
MySQL
16 lines
374 B
MySQL
|
set optimize_skip_unused_shards=1;
|
||
|
set force_optimize_skip_unused_shards=1;
|
||
|
|
||
|
drop table if exists d;
|
||
|
drop table if exists dp;
|
||
|
|
||
|
create table d (i UInt8) Engine=Memory;
|
||
|
create table dp as d Engine=Distributed(test_cluster_two_shards, currentDatabase(), d, i);
|
||
|
|
||
|
insert into d values (1), (2);
|
||
|
|
||
|
select * from dp where i in (1);
|
||
|
|
||
|
drop table if exists d;
|
||
|
drop table if exists dp;
|