Add a test.

This commit is contained in:
Nikolai Kochetov 2024-07-16 09:50:27 +00:00
parent 2bc65fe208
commit 24b9e18852
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,8 @@
false 1 1
true 1 1
---
false 1 1
false 1 2
false 1 3
true 1 1
true 1 2

View File

@ -0,0 +1,11 @@
create table t(c Int32, d Bool) Engine=MergeTree order by c;
system stop merges t;
insert into t values (1, 0);
insert into t values (1, 0);
insert into t values (1, 1);
insert into t values (1, 0)(1, 1);
SELECT d, c, row_number() over (partition by d order by c) as c8 FROM t qualify c8=1 order by d settings max_threads=2;
SELECT '---';
SELECT d, c, row_number() over (partition by d order by c) as c8 FROM t order by d, c8 settings max_threads=2;