ClickHouse/tests/queries/0_stateless/01901_in_literal_shard_prune.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
390 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: shard
2021-06-04 13:16:15 +00:00
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;