mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Add a test.
This commit is contained in:
parent
2bc65fe208
commit
24b9e18852
@ -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
|
@ -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;
|
Loading…
Reference in New Issue
Block a user