Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Boyer-Moore filtering for nested fields #5101

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

nwt
Copy link
Member

@nwt nwt commented Apr 5, 2024

Filter expressions of the form a.b=="s" and "s" in a.b don't benefit from the ZNG scanner's Boyer-Moore string search optimization because compiler/kernel.isFieldEqualOrIn (called by CompileBufferFilter) doesn't understand nested fields. Fix that.

Closes #3412.

Filter expressions of the form `a.b=="s"` and `"s" in a.b` don't
benefit from the ZNG scanner's Boyer-Moore string search optimization
because compiler/kernel.isFieldEqualOrIn (called by CompileBufferFilter)
doesn't understand nested fields.  Fix that.
@nwt nwt requested a review from a team April 5, 2024 21:32
@nwt nwt merged commit e6ce847 into main Apr 5, 2024
3 checks passed
@nwt nwt deleted the boyer-moore-for-nested-fields branch April 5, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

isFieldEqualOrIn should work for any field
2 participants