Skip to content

fix(table): copy metadata size in DataReplacement - #10842

Merged
zhangyue19921010 merged 1 commit into
lance-format:mainfrom
geruh:replace-with-size
Nov 9, 2026
Merged

zhangyue19921010 merged 1 commit into
lance-format:mainfrom
geruh:replace-with-size

Conversation

@geruh

@geruh geruh commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

DataReplacement updates path, file_size_bytes, and base_id when swapping a file in place, but missed file_metadata_size_bytes (added in #9168) and kept the old file's value.

Not caught because, nothing uses file_metadata_size_bytes yet, but it can be set through pylance or protobuf transactions, so we shouldn't leave the old file's value on the new file.

Testing

  • Added a test, to track, with some value and none

@geruh
geruh marked this pull request as ready for review November 8, 2026 22:21

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions github-actions Bot added the bug Something isn't working label Nov 8, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

No blocking issues found. The fix preserves the file-specific metadata hint contract, including when the replacement has no hint.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Nov 8, 2026

@zhangyue19921010 zhangyue19921010 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice change

@zhangyue19921010
zhangyue19921010 merged commit 65454d4 into lance-format:main Nov 9, 2026
57 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants