feat(core): support local-cache extension exclusions - #972
Draft
XiaoHongbo-Hope wants to merge 12 commits into
Draft
XiaoHongbo-Hope wants to merge 12 commits into
XiaoHongbo-Hope wants to merge 12 commits into
Conversation
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.
Purpose
Closes #971. Allow data file blocks to be cached while BLOB bodies bypass the cache:
The exclusion is optional and takes precedence over the whitelist. Empty exclusion preserves existing
databehavior. Parquet, ORC and Avro use the existing block cache; no new cache format or reader API is introduced. Related Python change: apache/paimon#10225.RocksDB BlobDB similarly treats reference-containing SST blocks as better cache targets than individual blob values. This PR selects file blocks, not decoded descriptors.
Validation
IO tests cover memory and disk caches, Parquet/ORC/Avro warm reads, BLOB bypass, empty exclusion and extension normalization. Formatting and scoped Clippy passed.
A previous native benchmark of the equivalent
.parquet/.blobpolicy on a fixed clip (three runs per variant, 131,072 samples per run) measured median throughput of 476.08 → 509.44 samples/s and host network receive of 2.765 → 0.550 MiB/sample. This is a hot-working-set result, not a count of OSS requests or a benchmark of this exact commit.