Join GitHub today
planner,expression: use constraint propagation in partition pruning #8885
What problem does this PR solve?
Now we can prune some of the
The partition expression is
From the result we can see that
What is changed and how it works?
Fix those two restrictions mentioned in the issue:
Now prune will consider both push down conditions and the filter conditions in the
There are still two minor problems, but they are not introduced by this commit:
@@ Coverage Diff @@ ## master #8885 +/- ## ========================================= Coverage ? 67.14% ========================================= Files ? 372 Lines ? 76968 Branches ? 0 ========================================= Hits ? 51679 Misses ? 20657 Partials ? 4632