[Fix](regression-test) fix incorrect explain requirement when globally enable nereids (#20809)

This commit is contained in:
mch_ucchi
2023-06-16 14:51:22 +08:00
committed by GitHub
parent 731ce5802e
commit f741129ffe

View File

@ -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