-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Currently the error message doesn't give enough information to debug what's going on.
arrow2-convert/arrow2_convert/src/deserialize.rs
Lines 305 to 307 in 6c37e29
| Err(arrow2::error::Error::InvalidArgumentError( | |
| "Data type mismatch".to_string(), | |
| )) |
Something like this helped me debug an issue I was running into:
Err(arrow2::error::Error::InvalidArgumentError(format!(
"Data type mismatch. Expected: {:?} | Found: {:?}",
&<ArrowType as ArrowField>::data_type(),
arr.data_type()
)))It produced an error message that looks like:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidArgumentError("Data type mismatch. Expected: Struct([...redacted...]) | Found: Struct(...redacted...)")', examples/read_parquet_specific_columns.rs:95:79
Could potentially make it even better by doing a diff.
ncpenke and RalfNorthman
Metadata
Metadata
Assignees
Labels
No labels