From 50e1eedd4766ed8c2e34339d78f000d63f4d5191 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 23 Mar 2023 17:48:06 +0300 Subject: [PATCH] Add a test for #17756 (#47739) --- tests/queries/0_stateless/02693_multiple_joins_in.reference | 0 tests/queries/0_stateless/02693_multiple_joins_in.sql | 3 +++ 2 files changed, 3 insertions(+) create mode 100644 tests/queries/0_stateless/02693_multiple_joins_in.reference create mode 100644 tests/queries/0_stateless/02693_multiple_joins_in.sql diff --git a/tests/queries/0_stateless/02693_multiple_joins_in.reference b/tests/queries/0_stateless/02693_multiple_joins_in.reference new file mode 100644 index 00000000000..e69de29bb2d diff --git a/tests/queries/0_stateless/02693_multiple_joins_in.sql b/tests/queries/0_stateless/02693_multiple_joins_in.sql new file mode 100644 index 00000000000..8be52948d26 --- /dev/null +++ b/tests/queries/0_stateless/02693_multiple_joins_in.sql @@ -0,0 +1,3 @@ +create temporary table temp_table3(val0 UInt64) ENGINE=Memory(); +select * from (select 1 as id) t1 inner join (select 1 as id) t2 on t1.id=t2.id inner join (select 1 as id) t3 on t1.id=t3.id where t1.id in temp_table3; +select * from (select 1 as id) t1 inner join (select 1 as id) t2 on t1.id=t2.id where t1.id in temp_table3;