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) +)