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