From 8e5f7acd07cb25b6b3e6e450a8f3517748732664 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Wed, 25 Nov 2020 16:34:07 +0300 Subject: [PATCH] Added test. --- .../01586_storage_join_low_cardinality_key.reference | 3 +++ .../01586_storage_join_low_cardinality_key.sql | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/queries/0_stateless/01586_storage_join_low_cardinality_key.reference create mode 100644 tests/queries/0_stateless/01586_storage_join_low_cardinality_key.sql diff --git a/tests/queries/0_stateless/01586_storage_join_low_cardinality_key.reference b/tests/queries/0_stateless/01586_storage_join_low_cardinality_key.reference new file mode 100644 index 00000000000..e8183f05f5d --- /dev/null +++ b/tests/queries/0_stateless/01586_storage_join_low_cardinality_key.reference @@ -0,0 +1,3 @@ +1 +1 +1 diff --git a/tests/queries/0_stateless/01586_storage_join_low_cardinality_key.sql b/tests/queries/0_stateless/01586_storage_join_low_cardinality_key.sql new file mode 100644 index 00000000000..4b613b6d7ce --- /dev/null +++ b/tests/queries/0_stateless/01586_storage_join_low_cardinality_key.sql @@ -0,0 +1,11 @@ +CREATE TABLE low_card +( + `lc` LowCardinality(String) +) +ENGINE = Join(ANY, LEFT, lc); + +INSERT INTO low_card VALUES ( '1' ); + +SELECT * FROM low_card; +SELECT * FROM low_card WHERE lc = '1'; +SELECT CAST(lc AS String) FROM low_card;