Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
feiniaofeiafei committed Sep 24, 2024
1 parent 5765572 commit f416ada
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion regression-test/data/new_shapes_p0/hint_tpch/shape/q12.out
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f416ada

Please sign in to comment.