diff --git a/dbms/tests/queries/0_stateless/00195_union_all_and_global_in.reference b/dbms/tests/queries/0_stateless/00195_union_all_and_global_in.reference new file mode 100644 index 00000000000..0fefde4d723 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00195_union_all_and_global_in.reference @@ -0,0 +1,15 @@ +0 +0 +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +0 +0 +0 diff --git a/dbms/tests/queries/0_stateless/00195_union_all_and_global_in.sql b/dbms/tests/queries/0_stateless/00195_union_all_and_global_in.sql new file mode 100644 index 00000000000..f9bde9bbbb1 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00195_union_all_and_global_in.sql @@ -0,0 +1,4 @@ +SELECT * FROM (SELECT * WHERE dummy GLOBAL IN (SELECT 0)); +SELECT * FROM (SELECT * WHERE dummy GLOBAL IN (SELECT toUInt8(number) FROM system.numbers LIMIT 10)); +SELECT * FROM (SELECT * FROM (SELECT * FROM system.numbers LIMIT 20) WHERE number GLOBAL IN (SELECT number FROM system.numbers LIMIT 10)); +SELECT * FROM (SELECT * FROM remote('127.0.0.{1,2,3}', system.one) WHERE dummy GLOBAL IN (SELECT * FROM remote('127.0.0.{1,2}', system.one)));