From 6847fdb97909fa5786d524420ce0bfb8a0bb925f Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 15 Jul 2015 08:06:26 +0300 Subject: [PATCH] dbms: added test [#METR-15553]. --- .../00195_union_all_and_global_in.reference | 15 +++++++++++++++ .../0_stateless/00195_union_all_and_global_in.sql | 4 ++++ 2 files changed, 19 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00195_union_all_and_global_in.reference create mode 100644 dbms/tests/queries/0_stateless/00195_union_all_and_global_in.sql 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)));