Repository navigation
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
Fixes #11633
With
sequence.field='t0, ts', renamingtstostampin PyPaimon's filesystem catalog can leave the option pointing tots. Reads fail if the old name disappears and can select the wrong row version if another column takes that name.Resolve sequence fields in their configured order and follow their field IDs through the ALTER batch. In this example, the catalog stores
t0,stampand keeps the originaltscolumn as the tie-breaker, even if another column becomests. ASETthat changes the option text resolves names against the schema at that point in the batch. Repeating the same text preserves the existing binding. A rename to an empty column name stores that sequence entry as a single space. If the option ist0,and an existing empty-named column is renamed tostamp, the catalog storest0,stampto preserve the SQLContext ordering.Tests
SETbehavior, trailing separators, and empty or control-character column names.pypaimon-rust 0.5.0(19 tests).