From fd169af725a656cd8a7c0dd3a8cf64ed024798c7 Mon Sep 17 00:00:00 2001 From: amory Date: Wed, 19 Mar 2025 22:14:47 +0800 Subject: [PATCH] [fix](cases) fix case for test_struct_functions without order by (#49247) --- .../sql_functions/struct_functions/test_struct_functions.out | 2 +- .../struct_functions/test_struct_functions.groovy | 4 ++-- 2 files changed, 3 insertions(+), 3 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..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 @@ -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));""" - qt_sql_after """ 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 order by a; """ }