From c79aa13fa926c93335ba65326aa93645595dfb6c Mon Sep 17 00:00:00 2001 From: Nikolai Kochetov Date: Tue, 12 Jan 2021 22:13:06 +0300 Subject: [PATCH] Added test. --- .../01650_expressions_merge_bug.reference | 1 + .../01650_expressions_merge_bug.sql | 21 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 tests/queries/0_stateless/01650_expressions_merge_bug.reference create mode 100644 tests/queries/0_stateless/01650_expressions_merge_bug.sql diff --git a/tests/queries/0_stateless/01650_expressions_merge_bug.reference b/tests/queries/0_stateless/01650_expressions_merge_bug.reference new file mode 100644 index 00000000000..3a48788e754 --- /dev/null +++ b/tests/queries/0_stateless/01650_expressions_merge_bug.reference @@ -0,0 +1 @@ +\N \N diff --git a/tests/queries/0_stateless/01650_expressions_merge_bug.sql b/tests/queries/0_stateless/01650_expressions_merge_bug.sql new file mode 100644 index 00000000000..f28f663b2d4 --- /dev/null +++ b/tests/queries/0_stateless/01650_expressions_merge_bug.sql @@ -0,0 +1,21 @@ + +SELECT + NULL IN + ( + SELECT + 9223372036854775807, + 9223372036854775807 + ), + NULL +FROM +( + SELECT DISTINCT + NULL, + NULL, + NULL IN + ( + SELECT (NULL, '-1') + ), + NULL + FROM numbers(1024) +)