Skip to content

Commit

Permalink
fix: Sort Order ID in TableMetadataBuilder changes should be updated (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
c-thiel authored Jan 23, 2025
1 parent efca9f0 commit 2688e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/iceberg/src/spec/table_metadata_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ impl TableMetadataBuilder {
if sort_order_found {
if self.last_added_order_id != Some(new_order_id) {
self.changes.push(TableUpdate::AddSortOrder {
sort_order: sort_order.clone(),
sort_order: sort_order.clone().with_order_id(new_order_id),
});
self.last_added_order_id = Some(new_order_id);
}
Expand Down

0 comments on commit 2688e50

Please sign in to comment.