ClickHouse/tests/queries/0_stateless/00963_achimbab.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
491 B
MySQL
Raw Normal View History

2023-03-17 20:44:01 +00:00
-- Tags: no-parallel, long
2019-07-07 00:39:45 +00:00
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]
2019-07-07 00:39:45 +00:00
SETTINGS max_threads = 100, max_execution_time = 120
format JSON;