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

gabriellee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 703943f2662 [test](case) Fix instability case caused by 
fold_constant_by_be. (#51445)
703943f2662 is described below

commit 703943f26627a246571dd08c55fb0ddb262d5d02
Author: Mryange <[email protected]>
AuthorDate: Thu Jun 5 10:30:03 2025 +0800

    [test](case) Fix instability case caused by fold_constant_by_be. (#51445)
    
    Known issue: float outputs differ between backend and frontend.
    For example, 2.0 prints as “2” on be but “2.0” on fe.
    ```mysql
    mysql> set enable_fold_constant_by_be = true;
    
    mysql>  select dict_get_many("test_dict_get_many.multi_key_dict", 
["k2","k3"], struct(2,'ABC'));
    
+----------------------------------------------------------------------------------+
    | dict_get_many("test_dict_get_many.multi_key_dict", ["k2","k3"], 
struct(2,'ABC')) |
    
+----------------------------------------------------------------------------------+
    | {"k2":2.0, "k3":"DEF"}                                                    
       |
    
+----------------------------------------------------------------------------------+
    
    mysql> set enable_fold_constant_by_be = false;
    
    mysql>  select dict_get_many("test_dict_get_many.multi_key_dict", 
["k2","k3"], struct(2,'ABC'));
    
+----------------------------------------------------------------------------------+
    | dict_get_many("test_dict_get_many.multi_key_dict", ["k2","k3"], 
struct(2,'ABC')) |
    
+----------------------------------------------------------------------------------+
    | {"k2":2, "k3":"DEF"}                                                      
       |
    
+----------------------------------------------------------------------------------+
    ```
---
 .../data/dictionary_p0/test_dict_get_many.out           | Bin 263 -> 265 bytes
 .../suites/dictionary_p0/test_dict_get_many.groovy      |   4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/regression-test/data/dictionary_p0/test_dict_get_many.out 
b/regression-test/data/dictionary_p0/test_dict_get_many.out
index 80d1d05ed50..da9abb0ad49 100644
Binary files a/regression-test/data/dictionary_p0/test_dict_get_many.out and 
b/regression-test/data/dictionary_p0/test_dict_get_many.out differ
diff --git a/regression-test/suites/dictionary_p0/test_dict_get_many.groovy 
b/regression-test/suites/dictionary_p0/test_dict_get_many.groovy
index 11984483950..b34e99720d0 100644
--- a/regression-test/suites/dictionary_p0/test_dict_get_many.groovy
+++ b/regression-test/suites/dictionary_p0/test_dict_get_many.groovy
@@ -30,8 +30,8 @@ suite("test_dict_get_many") {
         DISTRIBUTED BY HASH(`k0`) BUCKETS auto
         properties("replication_num" = "1");
     """
-    sql """insert into multi_key_table values(1, 'abc', 1.0, 'def');""" 
-    sql """insert into multi_key_table values(2, 'ABC', 2.0, 'DEF');"""    
+    sql """insert into multi_key_table values(1, 'abc', 1.1, 'def');""" 
+    sql """insert into multi_key_table values(2, 'ABC', 2.1, 'DEF');"""    
 
     sql """
         create dictionary single_key_dict using multi_key_table


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

Reply via email to