From a9f1948b2086e474e4b78fb59553be0485e847e7 Mon Sep 17 00:00:00 2001 From: priera Date: Tue, 26 Sep 2023 17:51:13 +0200 Subject: [PATCH] added new test --- .../0_stateless/02888_single_state_nullable_type.reference | 1 + .../0_stateless/02888_single_state_nullable_type.sql | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/queries/0_stateless/02888_single_state_nullable_type.reference create mode 100644 tests/queries/0_stateless/02888_single_state_nullable_type.sql diff --git a/tests/queries/0_stateless/02888_single_state_nullable_type.reference b/tests/queries/0_stateless/02888_single_state_nullable_type.reference new file mode 100644 index 00000000000..1d0e0aeac4e --- /dev/null +++ b/tests/queries/0_stateless/02888_single_state_nullable_type.reference @@ -0,0 +1 @@ +SimpleAggregateFunction(min, Nullable(UInt8)) 1 diff --git a/tests/queries/0_stateless/02888_single_state_nullable_type.sql b/tests/queries/0_stateless/02888_single_state_nullable_type.sql new file mode 100644 index 00000000000..420090a0bcb --- /dev/null +++ b/tests/queries/0_stateless/02888_single_state_nullable_type.sql @@ -0,0 +1,7 @@ +WITH minSimpleState(value) AS c +SELECT toTypeName(c), c +FROM ( + SELECT NULL as value + UNION ALL + SELECT 1 as value +);