From f416ada6a3374aca76731aa0a640a636ef683702 Mon Sep 17 00:00:00 2001 From: feiniaofeiafei Date: Tue, 24 Sep 2024 14:47:42 +0800 Subject: [PATCH] fix regression --- regression-test/data/new_shapes_p0/hint_tpch/shape/q12.out | 2 +- .../partition_prune/test_multi_range_partition.groovy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/regression-test/data/new_shapes_p0/hint_tpch/shape/q12.out b/regression-test/data/new_shapes_p0/hint_tpch/shape/q12.out index ad76dd8bd9f453e..a87109410690799 100644 --- a/regression-test/data/new_shapes_p0/hint_tpch/shape/q12.out +++ b/regression-test/data/new_shapes_p0/hint_tpch/shape/q12.out @@ -12,7 +12,7 @@ PhysicalResultSink ------------------PhysicalProject --------------------PhysicalOlapScan[orders] ------------------PhysicalProject ---------------------filter((lineitem.l_commitdate < lineitem.l_receiptdate) and (lineitem.l_receiptdate < '1995-01-01') and (lineitem.l_receiptdate >= '1994-01-01') and (lineitem.l_shipdate < lineitem.l_commitdate) and l_shipmode IN ('MAIL', 'SHIP')) +--------------------filter((lineitem.l_commitdate < lineitem.l_receiptdate) and (lineitem.l_receiptdate < '1995-01-01') and (lineitem.l_receiptdate >= '1994-01-01') and (lineitem.l_shipdate < '1995-01-01') and (lineitem.l_shipdate < lineitem.l_commitdate) and l_shipmode IN ('MAIL', 'SHIP')) ----------------------PhysicalOlapScan[lineitem] Hint log: diff --git a/regression-test/suites/nereids_rules_p0/partition_prune/test_multi_range_partition.groovy b/regression-test/suites/nereids_rules_p0/partition_prune/test_multi_range_partition.groovy index 23fad332f4c43d1..2ec942e0534571d 100644 --- a/regression-test/suites/nereids_rules_p0/partition_prune/test_multi_range_partition.groovy +++ b/regression-test/suites/nereids_rules_p0/partition_prune/test_multi_range_partition.groovy @@ -133,10 +133,10 @@ suite("test_multi_range_partition") { contains "partitions=2/3 (p2,p3)" } - //p3 NOT pruned + //p3 is pruned, because k2<7 is inferred explain { sql "select * from pt where k1=7 and (k1 > cast(k2 as bigint));" - contains "partitions=2/3 (p2,p3)" + contains "partitions=1/3 (p2)" } //fix BUG: p2 missed