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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve name lookup in meta index to reduce FPs #2086

Merged
merged 1 commit into from Feb 16, 2022

Conversation

dominiklohmann
Copy link
Member

@dominiklohmann dominiklohmann commented Feb 15, 2022

The candidate check of the meta index must use the proper suffix matching algorithm of the type system rather than plain suffix matching on a flat qualified record field's name in order to avoid false positive candidate partitions. E.g., the field extractor "ts" resolved to partitions that contained layouts with a field names "orig_pkts" rather than just those that only contained a field exactly named "ts". This change fixes that behavior.

馃摑 Checklist

  • All user-facing changes have changelog entries.
  • The changes are reflected on docs.tenzir.com/vast, if necessary.
  • The PR description contains instructions for the reviewer, if necessary.

馃幆 Review Instructions

@tobim please verify that this fixes the issue you've described. The check itself is rather simple.

This does not need a changelog entry since it should only be a speed improvement for some queries, but does not change any behavior in a user-facing way.

@dominiklohmann dominiklohmann added the bug Incorrect behavior label Feb 15, 2022
The candidate check of the meta index must use the proper suffix matching
algorithm of the type system rather than plain suffix matching on a flat
qualified record field's name in order to avoid false positive candidate
partitions. E.g., the field extractor "ts" resolved to partitions that contained
layouts with a field names "orig_pkts" rather than just those that only
contained a field exactly named "ts". This change fixes that behavior.
Copy link
Member

@tobim tobim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the changelog entry contains a little bit too much low level detail but we can still make this more palatable when we compile the release notes.

@dominiklohmann dominiklohmann merged commit 61143e8 into master Feb 16, 2022
@dominiklohmann dominiklohmann deleted the story/sc-31649/slow-queries branch February 16, 2022 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect behavior
Projects
None yet
2 participants