This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 958968fde62 branch-4.1: [fix](test) Cast variant subcolumn as json in 
variant_hirachinal for stable output #63828 (#63856)
958968fde62 is described below

commit 958968fde62859171fa62d0fe2011da53ec87e8a
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri May 29 15:04:49 2026 +0800

    branch-4.1: [fix](test) Cast variant subcolumn as json in 
variant_hirachinal for stable output #63828 (#63856)
    
    Cherry-picked from #63828
    
    Co-authored-by: Chenyang Sun <[email protected]>
---
 regression-test/suites/variant_p0/variant_hirachinal.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/regression-test/suites/variant_p0/variant_hirachinal.groovy 
b/regression-test/suites/variant_p0/variant_hirachinal.groovy
index 1f18d9ca387..d515faf8516 100644
--- a/regression-test/suites/variant_p0/variant_hirachinal.groovy
+++ b/regression-test/suites/variant_p0/variant_hirachinal.groovy
@@ -47,8 +47,8 @@ suite("regression_test_variant_hirachinal", "variant_type"){
     qt_sql "select cast(v['c'] as string) from ${table_name} where k = -3 or k 
= -2 order by k"
     qt_sql "select v['b'] from ${table_name} where k = -3 or k = -2"
     sql """insert into ${table_name} values (-3, '{"c" : 12345}')"""
-    order_qt_sql1 "select cast(v['c'] as string) from var_rs where k = -3 or k 
= -2 or k = -4 or (k = 1 and v['c'] = 1024) order by k"
-    order_qt_sql2 "select cast(v['c'] as string) from var_rs where k = -3 or k 
= -2 or k = 1 order by k, cast(v['c'] as text) limit 3"
+    order_qt_sql1 "select cast(v['c'] as json) from var_rs where k = -3 or k = 
-2 or k = -4 or (k = 1 and v['c'] = 1024) order by k"
+    order_qt_sql2 "select cast(v['c'] as json) from var_rs where k = -3 or k = 
-2 or k = 1 order by k, cast(v['c'] as text) limit 3"
 
 
     table_name = "var_rs2" 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to