Expand description
Cast support for union arrays.
Re-exportsยง
use crate::cast::can_cast_types;๐use crate::cast_with_options;๐use arrow_array::Array;๐use arrow_array::ArrayRef;๐use arrow_array::UnionArray;๐use arrow_schema::ArrowError;๐use arrow_schema::DataType;๐use arrow_schema::FieldRef;๐use arrow_schema::UnionFields;๐use arrow_select::union_extract::union_extract_by_id;๐use super::CastOptions;๐
Functionsยง
- resolve_
child_ ๐array - Selects the best-matching child array from a [
UnionArray] for a given target type - same_
type_ ๐family - union_
extract_ by_ type - Extracts the best-matching child array from a [
UnionArray] for a given target type, and casts it to that type.