Skip to content

Commit b916b9e

Browse files
SkyFan2002claude
andauthored
fix: prevent panic in multi-table insert commit by handling missing t… (#18793)
* fix: prevent panic in multi-table insert commit by handling missing table IDs Use unwrap_or_default() instead of unwrap() when accessing insert_rows map to avoid panic when a table ID is not found in the map. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * fix --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 760a53c commit b916b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/query/storages/fuse/src/operations/common/processors/multi_table_insert_commit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl AsyncSink for CommitMultiTableInsert {
208208
self.ctx.txn_mgr(),
209209
*self.table_meta_timestampss.get(&tid).unwrap(),
210210
hlls.get(&tid).unwrap(),
211-
*insert_rows.get(&tid).unwrap(),
211+
insert_rows.get(&tid).cloned().unwrap_or_default(),
212212
)
213213
.await?;
214214
break;

0 commit comments

Comments
 (0)