From 887779e8d8bfcf528a5c492cf13fadea6ebe0306 Mon Sep 17 00:00:00 2001 From: Wangyang Guo Date: Tue, 8 Nov 2022 17:19:18 +0800 Subject: [PATCH] Add perftest: low_cardinality_query --- tests/performance/low_cardinality_query.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/performance/low_cardinality_query.xml diff --git a/tests/performance/low_cardinality_query.xml b/tests/performance/low_cardinality_query.xml new file mode 100644 index 00000000000..989c674b443 --- /dev/null +++ b/tests/performance/low_cardinality_query.xml @@ -0,0 +1,13 @@ + + DROP TABLE IF EXISTS test_lc_query + + CREATE TABLE test_lc_query (x UInt64, lc LowCardinality(Nullable(String))) ENGINE = MergeTree order by x + + + INSERT INTO test_lc_query SELECT number, toString(number % 100) FROM numbers(1e7) + + SELECT count() FROM test_lc_query WHERE lc = '12' OR lc = '34' + SELECT count() FROM test_lc_query WHERE lc = '12' OR lc = '34' OR lc = '56' + + DROP TABLE IF EXISTS test_lc_query +