From 9ada9e4134ba1ade1a6099fa09456fc6ae7dce08 Mon Sep 17 00:00:00 2001 From: feiniaofeiafei Date: Tue, 24 Dec 2024 22:26:48 +0800 Subject: [PATCH] fix regression --- .../partition_prune/always_mono_func.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/regression-test/suites/nereids_rules_p0/partition_prune/always_mono_func.groovy b/regression-test/suites/nereids_rules_p0/partition_prune/always_mono_func.groovy index 25e3031ff59f223..44eb0b873bbfb4e 100644 --- a/regression-test/suites/nereids_rules_p0/partition_prune/always_mono_func.groovy +++ b/regression-test/suites/nereids_rules_p0/partition_prune/always_mono_func.groovy @@ -140,15 +140,15 @@ suite("always_mono_func") { } explain { sql """select * from always_mono_func where to_monday(dt) ='2019-01-01' """ - contains("partitions=1/5 (p4)") + contains("partitions=2/5 (p1,p4)") } explain { sql """select * from always_mono_func where to_monday(dt) >='2018-01-01' and to_monday(dt) <'2019-01-01' """ - contains("partitions=3/5 (p2,p3,p4)") + contains("partitions=4/5 (p1,p2,p3,p4)") } explain { sql """ select * from always_mono_func where to_monday(dt) >= "2019-01-01" """ - contains("partitions=2/5 (p4,p5)") + contains("partitions=3/5 (p1,p4,p5)") } // to_date explain { @@ -203,7 +203,7 @@ suite("always_mono_func") { explain { sql """select * from always_mono_func where date_format(to_monday(dt), 'yyyyMMdd') >= "20190101" """ - contains("partitions=2/5 (p4,p5)") + contains("partitions=3/5 (p1,p4,p5)") } explain { sql """select * from always_mono_func where date_format(last_day(to_monday(dt)), 'yyyyMMdd') < "20190101" """ @@ -216,6 +216,6 @@ suite("always_mono_func") { explain { sql """select * from always_mono_func where date_format(date_trunc(last_day(to_monday(dt)),'month'), 'yyyyMMdd') > "20190101" """ - contains("partitions=2/5 (p4,p5)") + contains("partitions=3/5 (p1,p4,p5)") } } \ No newline at end of file