Skip to content

Commit 91f4b4c

Browse files
author
Jan Kaul
committed
allow for upgrade-format-version operation if no update is required
1 parent 5a387e4 commit 91f4b4c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

iceberg-rust/src/catalog/commit.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,10 @@ pub fn apply_table_updates(
419419
) -> Result<(), Error> {
420420
for update in updates {
421421
match update {
422-
TableUpdate::UpgradeFormatVersion { format_version: _ } => {
422+
TableUpdate::UpgradeFormatVersion { format_version } => {
423+
if u8::from(metadata.format_version) == format_version as u8 {
424+
return Ok(());
425+
}
423426
unimplemented!();
424427
}
425428
TableUpdate::AssignUuid { uuid } => {

0 commit comments

Comments
 (0)