mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 02:41:59 +00:00
f65305878b
* Destructive IAggregateFunction::insertResultInto and ColumnAggregateFunction::convertToValues * Try fix build. * Try fix build. * Fix build. * Make convertToValues static. * fix build. * Remove const casts. * Added comment. * Fix build. * Fix build. * Add test. * Fix test.
24 lines
1.4 KiB
SQL
24 lines
1.4 KiB
SQL
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 (
|
|
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 union all
|
|
select finalizeAggregation(x) as y from test_quantile)
|
|
order by y;
|