Functions§
- adapt_
batch_ to_ schema - Adapts a
RecordBatchto conform totarget_schema, verifying that each target field type contains the incoming column data type (as verified byarrow::datatypes::DataType::contains) and transforms the metadata/types of differing columns to matchtarget_schemawithout copying primitive buffer data. - cast_
column - Cast a column to match the target field type, with special handling for nested structs.
- has_
one_ of_ more_ common_ fields - Check if two field lists have at least one common field by name.
- is_
injective_ cast - Returns true when casting from
source_typetotarget_typeis known to preserve value identity, so distinct source values stay distinct. - requires_
nested_ struct_ cast - Returns true if casting from
source_typetotarget_typerequires DataFusion’s specialized nested/container casting logic rather than Arrow’s standard cast. - validate_
data_ type_ compatibility - validate_
struct_ compatibility - Validates compatibility between source and target struct fields for casting operations.