Skip to content

Commit eeabfc6

Browse files
author
Jan Kaul
committed
Return early if no files are being added
1 parent b159444 commit eeabfc6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ impl Operation {
108108
let n_data_files = data_files.len();
109109
let n_delete_files = delete_files.len();
110110

111+
if n_data_files + n_delete_files == 0 {
112+
return Ok((None, Vec::new()));
113+
}
114+
111115
let data_files_iter = delete_files.iter().chain(data_files.iter());
112116

113117
let manifest_list_writer = if let Some(manifest_list_bytes) =

0 commit comments

Comments
 (0)