From b47a02f20bc9bb58657e21e6f13f8ac5a131263d Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 2 Aug 2020 05:00:08 +0300 Subject: [PATCH] Add test --- tests/queries/0_stateless/01423_if_nullable_cond.reference | 1 + tests/queries/0_stateless/01423_if_nullable_cond.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 tests/queries/0_stateless/01423_if_nullable_cond.reference create mode 100644 tests/queries/0_stateless/01423_if_nullable_cond.sql diff --git a/tests/queries/0_stateless/01423_if_nullable_cond.reference b/tests/queries/0_stateless/01423_if_nullable_cond.reference new file mode 100644 index 00000000000..f48898c83a6 --- /dev/null +++ b/tests/queries/0_stateless/01423_if_nullable_cond.reference @@ -0,0 +1 @@ +-1 Nullable(Int16) Nullable(Int16), Const(size = 1, Nullable(size = 1, Int16(size = 1), UInt8(size = 1))) diff --git a/tests/queries/0_stateless/01423_if_nullable_cond.sql b/tests/queries/0_stateless/01423_if_nullable_cond.sql new file mode 100644 index 00000000000..9c56e9dbe26 --- /dev/null +++ b/tests/queries/0_stateless/01423_if_nullable_cond.sql @@ -0,0 +1 @@ +SELECT CAST(null, 'Nullable(UInt8)') = 1 ? CAST(null, 'Nullable(UInt8)') : -1 AS x, toTypeName(x), dumpColumnStructure(x);