Skip to main content

Module nested_struct

Module nested_struct 

Source

Functions§

adapt_batch_to_schema
Adapts a RecordBatch to conform to target_schema, verifying that each target field type contains the incoming column data type (as verified by arrow::datatypes::DataType::contains) and transforms the metadata/types of differing columns to match target_schema without 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.
requires_nested_struct_cast
Returns true if casting from source_type to target_type requires name-based nested struct casting logic, rather than Arrow’s standard cast.
validate_data_type_compatibility
Validates that source_type can be cast to target_type, recursively handling container types that wrap structs.
validate_struct_compatibility
Validates compatibility between source and target struct fields for casting operations.