From 0b9c53ac7d99930b0bdeebbf323b9827612a08a4 Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Mon, 23 Mar 2020 15:48:10 +0300 Subject: [PATCH] Added test. --- .../0_stateless/02001_empty_join_and_totals.reference | 0 .../0_stateless/02001_empty_join_and_totals.sql | 11 +++++++++++ 2 files changed, 11 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/02001_empty_join_and_totals.reference create mode 100644 dbms/tests/queries/0_stateless/02001_empty_join_and_totals.sql diff --git a/dbms/tests/queries/0_stateless/02001_empty_join_and_totals.reference b/dbms/tests/queries/0_stateless/02001_empty_join_and_totals.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/dbms/tests/queries/0_stateless/02001_empty_join_and_totals.sql b/dbms/tests/queries/0_stateless/02001_empty_join_and_totals.sql new file mode 100644 index 00000000000..2424e7bbae9 --- /dev/null +++ b/dbms/tests/queries/0_stateless/02001_empty_join_and_totals.sql @@ -0,0 +1,11 @@ +select * from system.one t1 +join system.one t2 +on t1.dummy = t2.dummy +limit 0 +FORMAT TabSeparated; + +select * from system.one t1 +join system.one t2 +on t1.dummy = t2.dummy +where t2.dummy > 0 +FORMAT TabSeparated;