Skip to content

fix(table): populate WriteTask.SortOrderID from table metadata (#842) - #885

Closed
tanmayrauth wants to merge 1 commit into
apache:mainfrom
tanmayrauth:fix/populate-write-task-sort-order-id
Closed

tanmayrauth wants to merge 1 commit into
apache:mainfrom
tanmayrauth:fix/populate-write-task-sort-order-id

Conversation

@tanmayrauth

Copy link
Copy Markdown
Contributor

Thread MetadataBuilder.defaultSortOrderID through WriteFileInfo and DataFileStatistics so that DataFile.SortOrderID() is correctly stamped in manifest entries for all write paths (batch, streaming, add-files).

Added a >= 0 guard in ToDataFile() to safely handle the -1 sentinel used by freshly constructed MetadataBuilders in tests.

…e#842)

Thread MetadataBuilder.defaultSortOrderID through WriteFileInfo and
DataFileStatistics so that DataFile.SortOrderID() is correctly stamped
in manifest entries for all write paths (batch, streaming, add-files).

Added a >= 0 guard in ToDataFile() to safely handle the -1 sentinel
used by freshly constructed MetadataBuilders in tests.
@zeroshade

Copy link
Copy Markdown
Member

Closing as duplicate of #875

@zeroshade zeroshade closed this Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants