From 91bc0eca11f35cb6a1dc84bb7eaf3d71ad534cb3 Mon Sep 17 00:00:00 2001 From: chertus Date: Wed, 28 Aug 2019 20:00:20 +0300 Subject: [PATCH] add test for #4858 --- .../0_stateless/00881_unknown_identifier_in_in.reference | 1 + .../queries/0_stateless/00881_unknown_identifier_in_in.sql | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.reference create mode 100644 dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.sql diff --git a/dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.reference b/dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.reference new file mode 100644 index 00000000000..d00491fd7e5 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.reference @@ -0,0 +1 @@ +1 diff --git a/dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.sql b/dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.sql new file mode 100644 index 00000000000..2ce709c45be --- /dev/null +++ b/dbms/tests/queries/0_stateless/00881_unknown_identifier_in_in.sql @@ -0,0 +1,4 @@ +SELECT toUInt64(1) x FROM (select 1) +GROUP BY 1 +HAVING x +IN ( SELECT countIf(y, z == 1) FROM (SELECT 1 y, 1 z) );