Update 01755_shard_pruning_with_literal.sql

This commit is contained in:
Nikolai Kochetov 2021-03-17 12:34:59 +03:00 committed by GitHub
parent 5881270f90
commit 05a9f8a793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,14 @@
set optimize_skip_unused_shards=1; set optimize_skip_unused_shards=1;
drop table if exists data_01755; drop table if exists data_01755;
drop table if exists dist_01755; drop table if exists dist_01755;
create table data_01755 (i Int) Engine=Memory; create table data_01755 (i Int) Engine=Memory;
create table dist_01755 as data_01755 Engine=Distributed(test_cluster_two_shards, currentDatabase(), data_01755, i); create table dist_01755 as data_01755 Engine=Distributed(test_cluster_two_shards, currentDatabase(), data_01755, i);
insert into data_01755 values (1); insert into data_01755 values (1);
select * from dist_01755 where 0;
select * from dist_01755 where 1 settings enable_early_constant_folding = 0; select * from dist_01755 where 1 settings enable_early_constant_folding = 0;
drop table if exists data_01755;
drop table if exists dist_01755;