fn cast_to_binary_view_arrays(array: &dyn Array) -> Result<ArrayRef, ArrowError>
Expand description
Workaround for lack of direct support for BinaryArray https://github.com/apache/arrow-rs/issues/8387
The values are read as
StructArray<metadata: Binary, value: Binary>
but VariantArray needs them as
StructArray<metadata: BinaryView, value: BinaryView>
So cast them to get the right type.