Repository navigation
fix!: derive merge_columns field ids from the dataset manifest - #9547
Merged
zhangyue19921010 merged 4 commits intoSep 29, 2026
Merged
zhangyue19921010 merged 4 commits into
zhangyue19921010 merged 4 commits into
Conversation
`FileFragment::merge_columns` assigned new schema field ids from the caller-supplied `max_field_id`, while the `Updater` assigned data file field ids from the dataset manifest. When the two differed, the `Merge` commit succeeded but the new columns read back as `null` (or, with dropped columns, could alias stale data). Remove the `max_field_id` parameter and always use the manifest's `max_field_id()`, the same source the `Updater` uses. Every in-tree caller already passed that value, so the Python `LanceFragment.merge` and Java `Fragment.mergeColumns` APIs are unchanged. BREAKING CHANGE: `FileFragment::merge_columns` no longer takes a `max_field_id` argument.
zhangyue19921010
force-pushed
the
fix/merge-columns-max-field-id
branch
from
September 24, 2026 07:49
f7b1e71 to
9608b86
Compare
yanghua
approved these changes
Sep 28, 2026
yanghua
left a comment
Collaborator
There was a problem hiding this comment.
LGTM. Left one non-blocked comment.
Collaborator
Author
CI Passed. Thanks a lot for your review teacher yang @yanghua :P |
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.
FileFragment::merge_columnsassigned new schema field ids from the caller-suppliedmax_field_id, while theUpdaterassigned data file field ids from the dataset manifest. When the two differed, theMergecommit succeeded but the new columns read back asnull(or, with dropped columns, could alias stale data).Remove the
max_field_idparameter and always use the manifest'smax_field_id(), the same source theUpdateruses. Every in-tree caller already passed that value, so the PythonLanceFragment.mergeand JavaFragment.mergeColumnsAPIs are unchanged.BREAKING CHANGE:
FileFragment::merge_columnsno longer takes amax_field_idargument.