mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
add test
This commit is contained in:
parent
a34411f51e
commit
f8ac2398b0
@ -0,0 +1,4 @@
|
||||
1 499999999500000000 1 1
|
||||
2 499999999500000000 1 1
|
||||
3 4999999950000000 1 1
|
||||
4 4999999950000000 1 1
|
@ -0,0 +1,11 @@
|
||||
drop table if exists t;
|
||||
create table t(n int, a Int64, s String) engine = MergeTree() order by a;
|
||||
|
||||
insert into t select 1, sum(number) as c, getSetting('max_threads') from numbers_mt(1000000000);
|
||||
insert into t select 2, sum(number) as c, getSetting('max_threads') from numbers_mt(1000000000) group by 1;
|
||||
insert into t select 3, sum(number) as c, getSetting('max_threads') from numbers_mt(100000000) group by 3;
|
||||
insert into t select 4, sum(number) as c, getSetting('max_threads') as mt from numbers_mt(100000000) group by mt;
|
||||
|
||||
select n, a, s != '1', s = toString(getSetting('max_threads')) from t order by n;
|
||||
|
||||
drop table t;
|
Loading…
Reference in New Issue
Block a user