mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
fb38c2a30b
Remove experimental_use_processors setting, part 1.
19 lines
463 B
SQL
19 lines
463 B
SQL
SET output_format_write_statistics = 0;
|
|
|
|
select
|
|
sum(cnt) > 0 as total,
|
|
k[1], k[2]
|
|
from
|
|
(
|
|
select
|
|
arrayMap( x -> x % 3 ? toNullable(number%5 + x) : null, range(3)) as k,
|
|
number % 4 ? toNullable( rand() ) : Null as cnt
|
|
from system.numbers_mt
|
|
where number < 1000000
|
|
limit 1000000
|
|
)
|
|
group by k with totals
|
|
order by k[2]
|
|
SETTINGS max_threads = 100, max_execution_time = 120
|
|
format JSON;
|