Skip to content

Commit 424b5b0

Browse files
committed
don't commit transaction if there are no updates to be performed
1 parent 82cf63b commit 424b5b0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • iceberg-rust/src/table/transaction

iceberg-rust/src/table/transaction/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@ impl<'table> TableTransaction<'table> {
344344
updates.extend(update);
345345
}
346346

347+
if updates.is_empty() {
348+
return Ok(());
349+
}
350+
347351
let new_table = catalog
348352
.clone()
349353
.update_table(CommitTable {

0 commit comments

Comments
 (0)