Repository navigation
Conversation
Repeated reads of the same blob reuse a cloned bitmap keyed by storage identity, path, strong etag, offset, and size. Weak or empty etags are not cached. `SYSTEM DROP PUFFIN FILES CACHE` clears the cache. https: //github.com/ClickHouse/pull/113561 Co-authored-by: Cursor <[email protected]>
ianton-ru
marked this pull request as ready for review
September 29, 2026 16:25
scanhex12
reviewed
Oct 31, 2026
| extern const ServerSettingsUInt64 parquet_metadata_cache_size; | ||
| extern const ServerSettingsUInt64 parquet_metadata_cache_max_entries; | ||
| extern const ServerSettingsDouble parquet_metadata_cache_size_ratio; | ||
| extern const ServerSettingsString puffin_files_cache_policy; |
Member
There was a problem hiding this comment.
I think it makes sense to do the same cache for position deletes and put it into bitmaps
Contributor
|
Workflow [PR], commit [c2fd7f7] Summary: ❌
|
This branch has not been deployed
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.
A process-global Puffin files cache stores parsed Iceberg deletion-vector bitmaps so a repeated read of the same blob does not fetch and decode it again.
readIcebergDeletionVectorlooks up the blob before reading it. The key is the storage identity (getName,getDescription, namespace, and key prefix), path, strong etag, content offset, and content size. Weak or empty etags are not keys (isEtagUsableAsCacheKey), so those blobs are always read. The cache returns a clone, so a caller cannot mutate the stored bitmap.CacheBase::getOrSetWithOutcomeclassifies the hit or miss together with the value, so a concurrentSYSTEM DROP PUFFIN FILES CACHEis not reported as a hit.use_puffin_files_cacheenables the cache (default on). Server settingspuffin_files_cache_policy,puffin_files_cache_size,puffin_files_cache_max_entries, andpuffin_files_cache_size_ratiobound it.SYSTEM DROP PUFFIN FILES CACHEclears it and is gated by access control.This is the Puffin files cache split out of #113561. Deletion-vector read support from that pull request landed separately in #110781. The merged reader seeks to the deletion-vector slice and does not parse Puffin footers, so this cache does not memoize footers and does not put the referenced data file or expected cardinality into the key.
Related: #113561
Related: #110781
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Cache parsed Iceberg deletion vectors loaded from Puffin files. A repeated read of the same blob, identified by storage, path, strong etag, offset, and size, reuses a cloned bitmap. Weak or empty etags are not cached.
SYSTEM DROP PUFFIN FILES CACHEclears the cache.Workflow [PR]
Sync PR [sync-upstream/pr/122899]