From 3bd9a7d3bd723bb0c589c1fdc616f0efffec7297 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 29 Nov 2020 15:23:16 +0300 Subject: [PATCH] Add a test for #12297 --- .../0_stateless/01596_full_join_chertus.reference | 6 ++++++ tests/queries/0_stateless/01596_full_join_chertus.sql | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/queries/0_stateless/01596_full_join_chertus.reference create mode 100644 tests/queries/0_stateless/01596_full_join_chertus.sql diff --git a/tests/queries/0_stateless/01596_full_join_chertus.reference b/tests/queries/0_stateless/01596_full_join_chertus.reference new file mode 100644 index 00000000000..5b1f6aa945d --- /dev/null +++ b/tests/queries/0_stateless/01596_full_join_chertus.reference @@ -0,0 +1,6 @@ +UInt64 LowCardinality(UInt64) LowCardinality(String) String +UInt64 LowCardinality(UInt64) LowCardinality(String) String +UInt64 LowCardinality(UInt64) LowCardinality(String) String +UInt64 LowCardinality(UInt64) LowCardinality(String) String +UInt64 LowCardinality(UInt64) LowCardinality(String) String +UInt64 LowCardinality(UInt64) LowCardinality(String) String diff --git a/tests/queries/0_stateless/01596_full_join_chertus.sql b/tests/queries/0_stateless/01596_full_join_chertus.sql new file mode 100644 index 00000000000..162b9f7be8f --- /dev/null +++ b/tests/queries/0_stateless/01596_full_join_chertus.sql @@ -0,0 +1,9 @@ +select toTypeName(materialize(js1.k)), toTypeName(materialize(js2.k)), toTypeName(materialize(js1.s)), toTypeName(materialize(js2.s)) +from (select number k, toLowCardinality(toString(number)) s from numbers(2)) as js1 +full join (select toLowCardinality(number+1) k, toString(number+1) s from numbers(2)) as js2 +using k order by js1.k, js2.k; + +select toTypeName(js1.k), toTypeName(js2.k), toTypeName(js1.s), toTypeName(js2.s) +from (select number k, toLowCardinality(toString(number)) s from numbers(2)) as js1 +full join (select toLowCardinality(number+1) k, toString(number+1) s from numbers(2)) as js2 +using k order by js1.k, js2.k;