This commit is contained in:
Alexander Tokmakov 2022-05-09 17:39:29 +02:00
parent a34411f51e
commit f8ac2398b0
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,4 @@
1 499999999500000000 1 1
2 499999999500000000 1 1
3 4999999950000000 1 1
4 4999999950000000 1 1

View File

@ -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;