fix: like queries with a prefix should be accelerated by btree and zonemap#6188
fix: like queries with a prefix should be accelerated by btree and zonemap#6188jackye1995 wants to merge 6 commits intolance-format:mainfrom
Conversation
|
ACTION NEEDED The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. For details on the error please inspect the "PR Title Check" action. |
PR Review: LIKE prefix acceleration for btree and zonemapOverall this is a well-structured change with good test coverage. A few issues worth addressing: Minor: Escape handling in
|
|
looks like I did not handle AND properly, will take another pass tomorrow |
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This allows pruning
LIKE "foo%"through any index that allows pruning a range of string prefixes, this includes btree and zonemap.I ended up adding a
LikePrefixinstead ofStartsWithbecause it seems like DataFusion convertsStartsWithtoLIKE