From 42a055629240f2e8078595313243740ea91ac6b6 Mon Sep 17 00:00:00 2001 From: amorynan Date: Wed, 19 Mar 2025 15:17:58 +0800 Subject: [PATCH 1/2] fix case --- .../sql_functions/struct_functions/test_struct_functions.out | 2 +- .../sql_functions/struct_functions/test_struct_functions.groovy | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regression-test/data/query_p0/sql_functions/struct_functions/test_struct_functions.out b/regression-test/data/query_p0/sql_functions/struct_functions/test_struct_functions.out index 7c4078faaf2d71..42abf47a7e0b3e 100644 --- a/regression-test/data/query_p0/sql_functions/struct_functions/test_struct_functions.out +++ b/regression-test/data/query_p0/sql_functions/struct_functions/test_struct_functions.out @@ -44,5 +44,5 @@ NULL null \N -- !sql_after -- {"col_11":123.321, "col_12":{"col":1, "col1":345.24}} -{"col_11":123.321, "col_12":{"col":1, "col1":12345.24}} +{"col_11":123.331, "col_12":{"col":1, "col1":12345.24}} diff --git a/regression-test/suites/query_p0/sql_functions/struct_functions/test_struct_functions.groovy b/regression-test/suites/query_p0/sql_functions/struct_functions/test_struct_functions.groovy index 64cccd81d09658..c3fca40aafd5ff 100644 --- a/regression-test/suites/query_p0/sql_functions/struct_functions/test_struct_functions.groovy +++ b/regression-test/suites/query_p0/sql_functions/struct_functions/test_struct_functions.groovy @@ -53,6 +53,6 @@ suite("test_struct_functions") { sql """ create table if not exists t01 (a decimal(6,3), d struct) properties ("replication_num"="1");""" sql """ insert into t01 values (123.321, named_struct('col', 1, 'col1', 345.24));""" qt_sql_before """ select named_struct("col_11", a, "col_12", d) from t01; """ - sql """ insert into t01 values (123.321, named_struct('col', 1, 'col1', 12345.24));""" + sql """ insert into t01 values (123.331, named_struct('col', 1, 'col1', 12345.24));""" qt_sql_after """ select named_struct("col_11", a, "col_12", d) from t01; """ } From 7f36aa62b42ddd6d396ba5984e80fafa49aedc82 Mon Sep 17 00:00:00 2001 From: amorynan Date: Wed, 19 Mar 2025 15:22:04 +0800 Subject: [PATCH 2/2] fix case: --- .../sql_functions/struct_functions/test_struct_functions.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regression-test/suites/query_p0/sql_functions/struct_functions/test_struct_functions.groovy b/regression-test/suites/query_p0/sql_functions/struct_functions/test_struct_functions.groovy index c3fca40aafd5ff..e3581967a2a6a9 100644 --- a/regression-test/suites/query_p0/sql_functions/struct_functions/test_struct_functions.groovy +++ b/regression-test/suites/query_p0/sql_functions/struct_functions/test_struct_functions.groovy @@ -54,5 +54,5 @@ suite("test_struct_functions") { sql """ insert into t01 values (123.321, named_struct('col', 1, 'col1', 345.24));""" qt_sql_before """ select named_struct("col_11", a, "col_12", d) from t01; """ sql """ insert into t01 values (123.331, named_struct('col', 1, 'col1', 12345.24));""" - qt_sql_after """ select named_struct("col_11", a, "col_12", d) from t01; """ + qt_sql_after """ select named_struct("col_11", a, "col_12", d) from t01 order by a; """ }