This is an automated email from the ASF dual-hosted git repository. morrysnow 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 f741129ffe [Fix](regression-test) fix incorrect explain requirement when globally enable nereids (#20809) f741129ffe is described below commit f741129ffe82df8d90c02c01db93e798e80eed35 Author: mch_ucchi <41606806+sohardforan...@users.noreply.github.com> AuthorDate: Fri Jun 16 14:51:22 2023 +0800 [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 --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org