Skip to content

Commit d935957

Browse files
CTTYfvaleye
andauthored
Update crates/iceberg/src/arrow/value.rs
Co-authored-by: Florian Valeye <[email protected]>
1 parent d744c1e commit d935957

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

crates/iceberg/src/arrow/value.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,15 @@ impl PartnerAccessor<ArrayRef> for ArrowArrayAccessor {
467467
Error::new(
468468
ErrorKind::DataInvalid,
469469
format!(
470-
"Field with id={} or name={} not found in struct array",
471-
field.id, field.name
470+
"Field with id={} or name={} not found in struct array. Available fields: [{}]",
471+
field.id,
472+
field.name,
473+
struct_array
474+
.fields()
475+
.iter()
476+
.map(|f| f.name().as_str())
477+
.collect::<Vec<_>>()
478+
.join(", ")
472479
),
473480
)
474481
})?;

0 commit comments

Comments
 (0)