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

Leverage statistics in querying #25

Merged
merged 3 commits into from
May 20, 2024
Merged

Leverage statistics in querying #25

merged 3 commits into from
May 20, 2024

Conversation

wkalt
Copy link
Owner

@wkalt wkalt commented May 20, 2024

This PR adds support in the executor for excluding inner tree nodes from exploration based on their statistics. For numerical and string comparisons, we can use the min/max statistics in the tree to accelerate queries. This works by compiling the user's where clause into a separate but similar expression structure to the one we use to filter nodes (a tree of function calls), which the tree iterator executes on the inner nodes of a tree. If statistics are inapplicable to a node we don't exclude it - only nodes that the statistics can prove are irrelevant are excluded.

wkalt added 3 commits May 19, 2024 07:21
This changes the representation of fixed-length array lengths from
little endian 32 bit integers to 64 bit varints in the parser bytecode.
This adds support to the tree iterator for pruning inner nodes based on
stored statistics, and also implements support in the executor so that
text and numeric comparisons can benefit from query acceleration based
on this pruning.
@wkalt wkalt merged commit c91e0e6 into main May 20, 2024
2 checks passed
@wkalt wkalt mentioned this pull request May 20, 2024
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.

1 participant