feat(shredding): add shared-shredding map placement policies#384
Open
zjw1111 wants to merge 4 commits into
Open
feat(shredding): add shared-shredding map placement policies#384zjw1111 wants to merge 4 commits into
zjw1111 wants to merge 4 commits into
Conversation
3d6ce68 to
534ca95
Compare
534ca95 to
fc44b2d
Compare
lxy-9602
reviewed
Jun 27, 2026
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
Linked issue: #342
Add shared-shredding map column placement policies for the write path:
fields.<column>.map.shared-shredding.column-placement-policy, defaulting tolru.MapSharedShreddingContextand letMapSharedShreddingBatchConverterread placement policy fromCoreOptionswhen creating per-column allocators.Tests
cmake --build build --target paimon-common-test -j64cmake --build build --target paimon-core-test -j64env LSAN_OPTIONS=detect_leaks=0 build/debug/paimon-common-test --gtest_filter=*MapSharedShredding*env LSAN_OPTIONS=detect_leaks=0 build/debug/paimon-core-test --gtest_filter=CoreOptionsTest.TestDefaultValue:CoreOptionsTest.TestMapStorageLayout:*SharedShredding*git diff --checkgit diff --cached --checkAPI and Format
Adds a core option for selecting the shared-shredding map column placement policy. The physical shared-shredding map column assignment can vary by configured policy; the default policy is
lru.Documentation
No.
Generative AI tooling
Generated-by: OpenAI Codex (GPT-5)