Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: improve errors on field cast failures (#2932)
# Description Adds information on the field, to-type and from-type when casting fails. We could consider using our own error type for the casting errors to allow unrolling errors to get the full path to a field. Currently we only give the last part of the path. When looking at `cast_field` I noticed that we might be missing a match on `(DataType::List(_), DataType::LargeList(_))`. Casting List to LargeList can currently cause some tricky behaviour. I had a record batch with a List type, and tried reading it with a LargeList schema. For some choices of schemas it failed with an error message, for other schemas is did not fail, but read the columns in the wrong order. Signed-off-by: R. Tyler Croy <[email protected]>
- Loading branch information