2020-05-14 07:59:14 +00:00
|
|
|
drop table if exists test_quantile;
|
|
|
|
create table test_quantile (x AggregateFunction(quantileTiming(0.2), UInt64)) engine = Memory;
|
|
|
|
insert into test_quantile select medianTimingState(.2)(number) from (select * from numbers(1000) order by number desc);
|
|
|
|
select y from (
|
2020-11-11 15:29:36 +00:00
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
2020-05-14 07:59:14 +00:00
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile union all
|
|
|
|
select finalizeAggregation(x) as y from test_quantile)
|
|
|
|
order by y;
|
2020-11-11 15:29:36 +00:00
|
|
|
drop table test_quantile;
|