Repository navigation
feat(shredding): support adaptive schemas across rolling files - #455
Merged
Merged
Conversation
lszskye
reviewed
Jul 29, 2026
lszskye
reviewed
Jul 29, 2026
lszskye
reviewed
Jul 29, 2026
lszskye
reviewed
Jul 29, 2026
lszskye
reviewed
Jul 29, 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
This change aligns the C++ Variant and MAP shared-shredding write paths with Java's rolling-file behavior.
Main changes:
Add adaptive Variant shredding inference:
per-fileandadaptiveinference modes.Refactor the shredding write-plan lifecycle:
ShreddingWritePlanFactory.Improve MAP shared-shredding rolling behavior:
Add deterministic row-count-based rolling:
target-file-row-numoption.Strengthen MAP shared-shredding validation:
Tests
API and Format
API changes:
Add the public option definition
target-file-row-num.INT64_MAX, which disables row-count-based rolling.1when explicitly configured.Add the public option definition
variant.shredding.inferenceMode.per-fileandadaptive.per-file.Add the public option definition
variant.shredding.adaptive.maxInferBufferRow.256.Add the public option definition
variant.shredding.adaptive.retentionRatio.0.05.[0, variant.shredding.minFieldCardinalityRatio].Add
VariantShreddingInferenceModewith:PER_FILEADAPTIVEFormat changes:
paimon.map.shared-shredding.field-dict-compression.Documentation
Generative AI tooling
Generated-by: Codex (GPT-5)