From 5103ddcb1efe5523fcc2fa7b9e8b0f3ea0713cc8 Mon Sep 17 00:00:00 2001 From: jacktengg <18241664+jacktengg@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:52:39 +0800 Subject: [PATCH] update test case --- regression-test/data/datatype_p0/decimalv3/test_load.out | 2 +- regression-test/suites/datatype_p0/decimalv3/test_load.groovy | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/regression-test/data/datatype_p0/decimalv3/test_load.out b/regression-test/data/datatype_p0/decimalv3/test_load.out index 99f9a08b3a0ce7..663c786ea8e957 100644 --- a/regression-test/data/datatype_p0/decimalv3/test_load.out +++ b/regression-test/data/datatype_p0/decimalv3/test_load.out @@ -30,7 +30,7 @@ 1.00500 0.10005 -- !decimalv3_underflow4 -- -1.00100 2.00200 +1.00100 0.00000 1.00200 0.00000 1.00300 0.10000 1.00400 0.10004 diff --git a/regression-test/suites/datatype_p0/decimalv3/test_load.groovy b/regression-test/suites/datatype_p0/decimalv3/test_load.groovy index 0cfd88f20c557d..1c0c95e5325768 100644 --- a/regression-test/suites/datatype_p0/decimalv3/test_load.groovy +++ b/regression-test/suites/datatype_p0/decimalv3/test_load.groovy @@ -151,8 +151,10 @@ suite("test_load") { qt_decimalv3_underflow3 """ select * from test_sys_update_basic_test_update_decimal_tb order by 1, 2; """ + // need to use "1.001"(quoted) because non-nereids dml seems treat 1.001 as double, + // which will cause wrong result of decimal comparision sql """ - UPDATE test_sys_update_basic_test_update_decimal_tb SET v1="0.00000001" WHERE k1 = 1.001; + UPDATE test_sys_update_basic_test_update_decimal_tb SET v1="0.00000001" WHERE k1 = "1.001"; """ qt_decimalv3_underflow4 """ select * from test_sys_update_basic_test_update_decimal_tb order by 1, 2;