fn binary_dict_to_string_view<K: ArrowDictionaryKeyType, O: OffsetSizeTrait>(
keys: &PrimitiveArray<K>,
values: &GenericByteArray<GenericBinaryType<O>>,
cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>Expand description
Cast Dict<K, Binary> or Dict<K, LargeBinary> to Utf8View, validating UTF-8 for each
dictionary value.
Fast path when all values are valid UTF-8: reuses the values buffer without copying.
When some values are invalid and cast_options.safe is true, rows pointing to those
values become null. When cast_options.safe is false, returns an error immediately.