From 257bbcafeadfdbbe3e565dc6c6c593b5b81bd927 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Fri, 13 Nov 2020 15:51:50 +0300 Subject: [PATCH] Added test from #16588 (cherry picked from commit b5a8ef3cebcc9a1471ec71c17a41b9ed78789945) --- .../01576_if_null_external_aggregation.reference | 0 .../0_stateless/01576_if_null_external_aggregation.sql | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 tests/queries/0_stateless/01576_if_null_external_aggregation.reference create mode 100644 tests/queries/0_stateless/01576_if_null_external_aggregation.sql diff --git a/tests/queries/0_stateless/01576_if_null_external_aggregation.reference b/tests/queries/0_stateless/01576_if_null_external_aggregation.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/queries/0_stateless/01576_if_null_external_aggregation.sql b/tests/queries/0_stateless/01576_if_null_external_aggregation.sql new file mode 100644 index 00000000000..b9c36a9cecc --- /dev/null +++ b/tests/queries/0_stateless/01576_if_null_external_aggregation.sql @@ -0,0 +1,7 @@ +SET max_bytes_before_external_group_by = 200000000; + +SET max_memory_usage = 1500000000; +SET max_threads = 12; + +SELECT bitAnd(number, 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; +