From 76c7a0bd4944cfa857dae42060648af03343fa07 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 15 Jun 2021 07:11:17 +0300 Subject: [PATCH] Add a test for #17964 --- tests/queries/0_stateless/01914_index_bgranvea.reference | 2 ++ tests/queries/0_stateless/01914_index_bgranvea.sql | 9 +++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/queries/0_stateless/01914_index_bgranvea.reference create mode 100644 tests/queries/0_stateless/01914_index_bgranvea.sql diff --git a/tests/queries/0_stateless/01914_index_bgranvea.reference b/tests/queries/0_stateless/01914_index_bgranvea.reference new file mode 100644 index 00000000000..85e6138dc5d --- /dev/null +++ b/tests/queries/0_stateless/01914_index_bgranvea.reference @@ -0,0 +1,2 @@ +1 1 1 +1 1 1 diff --git a/tests/queries/0_stateless/01914_index_bgranvea.sql b/tests/queries/0_stateless/01914_index_bgranvea.sql new file mode 100644 index 00000000000..817c9571088 --- /dev/null +++ b/tests/queries/0_stateless/01914_index_bgranvea.sql @@ -0,0 +1,9 @@ +DROP TABLE IF EXISTS test; +create table test (id UInt64,insid UInt64,insidvalue Nullable(UInt64), index insid_idx (insid) type bloom_filter() granularity 1, index insidvalue_idx (insidvalue) type bloom_filter() granularity 1) ENGINE=MergeTree() ORDER BY (insid,id); + +insert into test values(1,1,1),(2,2,2); + +select * from test where insid IN (1) OR insidvalue IN (1); +select * from test where insid IN (1) AND insidvalue IN (1); + +DROP TABLE test;