From ddd468814fdda0c3bb40057d84571f559e6817ff Mon Sep 17 00:00:00 2001 From: kevinyhzou Date: Tue, 19 Nov 2024 11:48:58 +0800 Subject: [PATCH] add test for LowCardinality --- .../03174_least_greatest_ignore_null_input_values.reference | 4 ++-- .../03174_least_greatest_ignore_null_input_values.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/queries/0_stateless/03174_least_greatest_ignore_null_input_values.reference b/tests/queries/0_stateless/03174_least_greatest_ignore_null_input_values.reference index e041958ae5f..9bd2c12f186 100644 --- a/tests/queries/0_stateless/03174_least_greatest_ignore_null_input_values.reference +++ b/tests/queries/0_stateless/03174_least_greatest_ignore_null_input_values.reference @@ -1,7 +1,7 @@ \N \N 4 4 2 2 4 2 1 1 4 1 2 1 4 1 -\N \N 4 4 2 2 4 2 -1 1 4 1 2 1 4 1 +2 \N \N 4 4 2 2 4 2 +2 1 1 4 1 2 1 4 1 2 1 2 1 1 1 2 1 \N \N diff --git a/tests/queries/0_stateless/03174_least_greatest_ignore_null_input_values.sql b/tests/queries/0_stateless/03174_least_greatest_ignore_null_input_values.sql index 36105b0824e..835b8d6ff26 100644 --- a/tests/queries/0_stateless/03174_least_greatest_ignore_null_input_values.sql +++ b/tests/queries/0_stateless/03174_least_greatest_ignore_null_input_values.sql @@ -2,8 +2,8 @@ select greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(NULL) as x1, materialize(toFloat32(2)) as x2); select greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(1) as x1, materialize(toFloat32(2)) as x2); -select greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(NULL) as x1, materialize(toDecimal32(2, 5)) as x2); -select greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(1) as x1, materialize(toDecimal32(2, 5)) as x2); +select greatest(materialize(toLowCardinality(2)), x1), greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(NULL) as x1, materialize(toDecimal32(2, 5)) as x2); +select greatest(materialize(toLowCardinality(2)), x1), greatest(x1, NULL), least(x1, NULL), greatest(x1, toNullable(4)), least(x1,toNullable(4)), greatest(x1, x2), least(x1,x2), greatest(x1, x2, 4), least(x1,x2, 4) from (select materialize(1) as x1, materialize(toDecimal32(2, 5)) as x2); select greatest(toNullable(1), 2), least(toNullable(1), 2), greatest(toNullable(1), 2, NULL), least(toNullable(1), 2, NULL); select greatest(1, NULL), least(1, NULL), greatest(1, 2, NULL), least(1, 2, NULL);