From a08677d4c470d0e450508ee3fcb0aec911f42914 Mon Sep 17 00:00:00 2001 From: Socrates Date: Sun, 22 Sep 2024 23:33:43 +0800 Subject: [PATCH] fix regression_test --- .../string_functions/test_translate.groovy | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/regression-test/suites/query_p0/sql_functions/string_functions/test_translate.groovy b/regression-test/suites/query_p0/sql_functions/string_functions/test_translate.groovy index e63f42ae5b4cf5..6e24dd41feb431 100644 --- a/regression-test/suites/query_p0/sql_functions/string_functions/test_translate.groovy +++ b/regression-test/suites/query_p0/sql_functions/string_functions/test_translate.groovy @@ -87,32 +87,6 @@ suite("test_translate") { order_qt_const23 "select translate(a, 'xyz', 'abc') from test_translate" order_qt_const3 "select translate(b, a, 'abc') from test_translate" - /// folding - def re_fe - def re_be - def re_no_fold - def check_three_ways = { test_sql -> - sql "set enable_fold_constant_by_be=false;" - re_fe = order_sql "select ${test_sql}" - sql "set enable_fold_constant_by_be=true;" - re_be = order_sql "select ${test_sql}" - sql "set debug_skip_fold_constant=true;" - re_no_fold = order_sql "select ${test_sql}" - logger.info("check on sql \${test_sql}") - assertEquals(re_fe, re_be) - assertEquals(re_fe, re_no_fold) - } - - check_three_ways "translate('abcd', '', '');" - check_three_ways "translate('abcda', 'a', 'z');" - check_three_ways "translate('abcd', 'ac', 'z');" - check_three_ways "translate('abcd', 'aac', 'zq');" - check_three_ways "translate('abcd', 'aac', 'zqx');" - check_three_ways "translate('abcd', 'aac', '中文x');" - check_three_ways "translate('中文', '中', '文');" - check_three_ways "translate('中文', '中', 'a');" - check_three_ways "translate('\tt\tt\tt', '\t', 't');" - order_qt_1 "select translate('abcd', '', '');" order_qt_2 "select translate('abcd', 'a', 'z')" order_qt_3 "select translate('abcda', 'a', 'z');"