Skip to content

Commit 11bb9b0

Browse files
committed
refine error
1 parent 4acbb92 commit 11bb9b0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/iceberg/src/arrow/record_batch_projector.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ impl RecordBatchProjector {
6262
&field_id_fetch_func,
6363
&searchable_field_func,
6464
)?
65-
.ok_or_else(|| Error::new(ErrorKind::Unexpected, "Field not found"))?;
65+
.ok_or_else(|| {
66+
Error::new(ErrorKind::Unexpected, "Field not found")
67+
.with_context("field_id", id.to_string())
68+
})?;
6669
fields.push(field.clone());
6770
field_indices.push(field_index);
6871
}

0 commit comments

Comments
 (0)