mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
Added test.
This commit is contained in:
parent
534b60e242
commit
5aba92a6bf
@ -0,0 +1 @@
|
|||||||
|
100000
|
12
tests/queries/0_stateless/01521_global_in_prewhere_15792.sql
Normal file
12
tests/queries/0_stateless/01521_global_in_prewhere_15792.sql
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
drop table if exists xp;
|
||||||
|
drop table if exists xp_d;
|
||||||
|
|
||||||
|
create table xp(A Date, B Int64, S String) Engine=MergeTree partition by toYYYYMM(A) order by B;
|
||||||
|
insert into xp select '2020-01-01', number , '' from numbers(100000);
|
||||||
|
|
||||||
|
create table xp_d as xp Engine=Distributed(test_shard_localhost, currentDatabase(), xp);
|
||||||
|
|
||||||
|
select count() from xp_d prewhere toYYYYMM(A) global in (select toYYYYMM(min(A)) from xp_d) where B > -1;
|
||||||
|
|
||||||
|
drop table if exists xp;
|
||||||
|
drop table if exists xp_d;
|
Loading…
Reference in New Issue
Block a user