Conversation
61a655f to
a2b4e77
Compare
Contributor
Author
|
@alamb I tagged you on this as it is using influxdb/influxdb3_cache/src/meta_cache/mod.rs Lines 183 to 220 in dff0b2e |
Implement the base MetaCache type that holds the hierarchical structure of the metadata cache providing methods to create and push rows from the WAL into the cache. Added a prune method as well as a method for gathering record batches from a meta cache. A test was added to check the latter for various predicates and that the former works, though, pruning shows that we need to modify how record batches are produced such that expired entries are not emitted.
a2b4e77 to
dd5f816
Compare
dff0b2e to
0ae8f82
Compare
mgattozzi
approved these changes
Nov 18, 2024
Contributor
mgattozzi
left a comment
There was a problem hiding this comment.
Looks good to me if this has follow up PRs (which I'm assuming since this doesn't seem to be hooked in)
| } | ||
| } | ||
|
|
||
| // TODO: remove this when fully implemented, for now just suppressing compiler warnings |
Contributor
There was a problem hiding this comment.
This is for a follow up PR when the metadata cache actually gets hooked up right?
Contributor
Author
There was a problem hiding this comment.
Yeah, the type will get used when I implement the DataFusion trait to hook this all up to the query path in #25544
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #25543
Implement the base
MetaCachetype that holds the hierarchical structure of the metadata cache providing methods to:max_ageand amax_cardinality(here)Tests
Notes
influxdb3_cachecrate, which just holds the metadata cache for now, but may well also hold the last-n-value cache and parquet cache to get those out of theinfluxdb3_writecrateWriteValidatorfrominfluxdb3_writeso it can be used as a more light-weight way of parsing line protocol and producingRows for testsMetaCacheProviderand other pieces necessary to tie this into the system.