Repository navigation
perf(layout): prune multi-field boolean predicates in the struct reader - #10689
Conversation
f058713 to
096e752
Compare
|
Thanks for the contribution. Does the conjunct partitioner not handle this in the ScanBuilder/exec_splits methods. Can we try and unify this logic with other parts of the StructLayoutReader |
Merging this PR will not alter performance2 warnings
Comparing Footnotes
|
096e752 to
95c03e1
Compare
No it doesnt because the condition contains a disjunction! But the AI helped me to unify the logic a little and simplfiy the PR drastically! |
Scan level conjunct splitting cannot seperate predicates such as a > 1 OR (a = 1 and b > 4), because the disjunction must remain intact. The struct reader previously skipped pruning for these multi-field predicates, forcing scans to decode zones that column statistics could rule out. Signed-off-by: Michael Hoffmann <mhoffmann@cloudflare.com>
Signed-off-by: Robert Kruszewski <robert@spiraldb.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
95c03e1 to
69c6158
Compare
Signed-off-by: Robert Kruszewski <robert@spiraldb.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Scan level conjunct splitting cannot seperate predicates such as a > 1
OR (a = 1 and b > 4), because the disjunction must remain intact.
The struct reader previously skipped pruning for these multi-field
predicates, forcing scans to decode zones that column statistics could
rule out.
Summary
Changes