Add a test.

This commit is contained in:
Nikolai Kochetov 2023-08-21 14:03:46 +00:00
parent 5a4b001f8e
commit dc10d7267f
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
drop table if exists tab;
create table tab (x UInt32, y UInt32) engine = MergeTree order by x;
insert into tab select number, number from numbers(10);
insert into tab select number, number from numbers(20);
set mutations_sync=2;
alter table tab delete where x > 1000 and y in (select sum(number + 1) from numbers_mt(1e7) group by number % 2 with totals);
drop table if exists tab;