Function datafusion_expr::field_util::get_indexed_field
source · [−]pub fn get_indexed_field(
data_type: &DataType,
key: &ScalarValue
) -> Result<Field>Expand description
Returns the field access indexed by key from a DataType::List or DataType::Struct
Error
Errors if
- the
data_typeis not a Struct or, - there is no field key is not of the required index type