ClickHouse/tests/queries/0_stateless/01576_if_null_external_aggregation.sql

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

8 lines
289 B
MySQL
Raw Normal View History

2020-11-13 12:51:50 +00:00
SET max_bytes_before_external_group_by = 200000000;
SET max_memory_usage = 1500000000;
SET max_threads = 12;
SELECT bitAnd(number, toUInt64(pow(2, 20) - 1)) as k, argMaxIf(k, number % 2 = 0 ? number : Null, number > 42), uniq(number) AS u FROM numbers(1000000) GROUP BY k format Null;
2020-11-13 12:51:50 +00:00