From 506cc6859af100fe0e982bb8b2ddce3f7be31ddc Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 22 Jul 2020 00:16:16 +0300 Subject: [PATCH] Added a test #11066 --- tests/queries/0_stateless/01413_if_array_uuid.reference | 5 +++++ tests/queries/0_stateless/01413_if_array_uuid.sql | 1 + 2 files changed, 6 insertions(+) create mode 100644 tests/queries/0_stateless/01413_if_array_uuid.reference create mode 100644 tests/queries/0_stateless/01413_if_array_uuid.sql diff --git a/tests/queries/0_stateless/01413_if_array_uuid.reference b/tests/queries/0_stateless/01413_if_array_uuid.reference new file mode 100644 index 00000000000..fbfa90bfc85 --- /dev/null +++ b/tests/queries/0_stateless/01413_if_array_uuid.reference @@ -0,0 +1,5 @@ +['00000000-e1fe-11e9-bb8f-853d60c00749'] +['11111111-e1fe-11e9-bb8f-853d60c00749'] +['00000000-e1fe-11e9-bb8f-853d60c00749'] +['11111111-e1fe-11e9-bb8f-853d60c00749'] +['00000000-e1fe-11e9-bb8f-853d60c00749'] diff --git a/tests/queries/0_stateless/01413_if_array_uuid.sql b/tests/queries/0_stateless/01413_if_array_uuid.sql new file mode 100644 index 00000000000..6b8fa387c44 --- /dev/null +++ b/tests/queries/0_stateless/01413_if_array_uuid.sql @@ -0,0 +1 @@ +SELECT if(number % 2 = 0, [toUUID('00000000-e1fe-11e9-bb8f-853d60c00749')], [toUUID('11111111-e1fe-11e9-bb8f-853d60c00749')]) FROM numbers(5);