Skip to content

Commit d13d10e

Browse files
Fix issue JanKaul#232
1 parent 841f9b9 commit d13d10e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • iceberg-rust/src/table/transaction

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ impl<'table> TableTransaction<'table> {
129129
delete_files: vec![],
130130
}),
131131
};
132+
} else {
133+
panic!("Operation at APPEND_INDEX should be an Append");
132134
}
133135
} else {
134136
self.operations[APPEND_INDEX] = Some(Operation::Append {
@@ -166,7 +168,7 @@ impl<'table> TableTransaction<'table> {
166168
if let Operation::Append {
167169
branch: _,
168170
dsn_groups,
169-
additional_summary: None,
171+
..
170172
} = operation
171173
{
172174
match dsn_groups.last_mut() {
@@ -176,6 +178,8 @@ impl<'table> TableTransaction<'table> {
176178
delete_files: files,
177179
}),
178180
};
181+
} else {
182+
panic!("Operation at APPEND_INDEX should be an Append");
179183
}
180184
} else {
181185
self.operations[APPEND_INDEX] = Some(Operation::Append {

0 commit comments

Comments
 (0)