From 45088760082beb774a5848efb09427a319f8d737 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 6 Jul 2020 05:57:58 +0300 Subject: [PATCH] Added another test just in case --- .../0_stateless/01374_if_nullable_filimonov.reference | 3 +++ tests/queries/0_stateless/01374_if_nullable_filimonov.sql | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 tests/queries/0_stateless/01374_if_nullable_filimonov.reference create mode 100644 tests/queries/0_stateless/01374_if_nullable_filimonov.sql diff --git a/tests/queries/0_stateless/01374_if_nullable_filimonov.reference b/tests/queries/0_stateless/01374_if_nullable_filimonov.reference new file mode 100644 index 00000000000..c17da4640ff --- /dev/null +++ b/tests/queries/0_stateless/01374_if_nullable_filimonov.reference @@ -0,0 +1,3 @@ +2 0 leave +0 1 delete +\N \N leave diff --git a/tests/queries/0_stateless/01374_if_nullable_filimonov.sql b/tests/queries/0_stateless/01374_if_nullable_filimonov.sql new file mode 100644 index 00000000000..159cf7b52ee --- /dev/null +++ b/tests/queries/0_stateless/01374_if_nullable_filimonov.sql @@ -0,0 +1,5 @@ +SELECT + UserID, + UserID = 0, + if(UserID = 0, 'delete', 'leave') +FROM VALUES('UserID Nullable(UInt8)', (2), (0), (NULL));