Skip to main content

Module union

Module union 

Source
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.