From f741129ffe82df8d90c02c01db93e798e80eed35 Mon Sep 17 00:00:00 2001 From: mch_ucchi <41606806+sohardforaname@users.noreply.github.com> Date: Fri, 16 Jun 2023 14:51:22 +0800 Subject: [PATCH] [Fix](regression-test) fix incorrect explain requirement when globally enable nereids (#20809) --- .../datetime_functions/test_date_function.groovy | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/regression-test/suites/query_p0/sql_functions/datetime_functions/test_date_function.groovy b/regression-test/suites/query_p0/sql_functions/datetime_functions/test_date_function.groovy index 86641d242b..e5c30d1754 100644 --- a/regression-test/suites/query_p0/sql_functions/datetime_functions/test_date_function.groovy +++ b/regression-test/suites/query_p0/sql_functions/datetime_functions/test_date_function.groovy @@ -632,15 +632,12 @@ suite("test_date_function") { PROPERTIES( "replication_allocation" = "tag.location.default: 1"); """ - explain { - sql("select * from ${tableName} where date(birth) < timestamp(date '2022-01-01')") - contains "`birth` < '2022-01-01'" - } + String explainResult + explainResult = sql("select * from ${tableName} where date(birth) < timestamp(date '2022-01-01')") + assertFalse(explainResult.contains("timestamp")) - explain { - sql("select * from ${tableName} where date(birth1) < timestamp(date '2022-01-01')") - contains "`birth1` < '2022-01-01'" - } + explainResult = sql("select * from ${tableName} where date(birth1) < timestamp(date '2022-01-01')") + assertFalse(explainResult.contains("timestamp")) sql """ insert into ${tableName} values