From bda33cad790881e5e41d46e356f5af28f3d515f3 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 23 Jun 2021 00:21:32 +0300 Subject: [PATCH] Add a test for #22108 --- .../0_stateless/01924_argmax_bitmap_state.reference | 1 + tests/queries/0_stateless/01924_argmax_bitmap_state.sql | 8 ++++++++ tests/queries/0_stateless/arcadia_skip_list.txt | 1 + 3 files changed, 10 insertions(+) create mode 100644 tests/queries/0_stateless/01924_argmax_bitmap_state.reference create mode 100644 tests/queries/0_stateless/01924_argmax_bitmap_state.sql diff --git a/tests/queries/0_stateless/01924_argmax_bitmap_state.reference b/tests/queries/0_stateless/01924_argmax_bitmap_state.reference new file mode 100644 index 00000000000..ec635144f60 --- /dev/null +++ b/tests/queries/0_stateless/01924_argmax_bitmap_state.reference @@ -0,0 +1 @@ +9 diff --git a/tests/queries/0_stateless/01924_argmax_bitmap_state.sql b/tests/queries/0_stateless/01924_argmax_bitmap_state.sql new file mode 100644 index 00000000000..298bbceeb1d --- /dev/null +++ b/tests/queries/0_stateless/01924_argmax_bitmap_state.sql @@ -0,0 +1,8 @@ +SELECT bitmapMax(argMax(x, y)) +FROM remote('127.0.0.{2,3}', view( + SELECT + groupBitmapState(toUInt32(number)) AS x, + number AS y + FROM numbers(10) + GROUP BY number +)); diff --git a/tests/queries/0_stateless/arcadia_skip_list.txt b/tests/queries/0_stateless/arcadia_skip_list.txt index f146913a2e8..0f3861c0bbe 100644 --- a/tests/queries/0_stateless/arcadia_skip_list.txt +++ b/tests/queries/0_stateless/arcadia_skip_list.txt @@ -247,3 +247,4 @@ 01910_view_dictionary 01824_prefer_global_in_and_join 01576_alias_column_rewrite +01924_argmax_bitmap_state