mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Update 01119_optimize_trivial_insert_select.sql
This commit is contained in:
parent
f8ac2398b0
commit
702122a502
@ -1,11 +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;
|
||||
insert into t select 1, sum(number) as c, getSetting('max_threads') from numbers_mt(100000000);
|
||||
insert into t select 2, sum(number) as c, getSetting('max_threads') from numbers_mt(100000000) group by 1;
|
||||
insert into t select 3, sum(number) as c, getSetting('max_threads') from numbers_mt(10000000) group by 3;
|
||||
insert into t select 4, sum(number) as c, getSetting('max_threads') as mt from numbers_mt(10000000) group by mt;
|
||||
|
||||
select n, a, s != '1', s = toString(getSetting('max_threads')) from t order by n;
|
||||
|
||||
drop table t;
|
||||
drop table t;
|
||||
|
Loading…
Reference in New Issue
Block a user