Skip to main content

arrow_array_to_value

Function arrow_array_to_value 

Source
pub fn arrow_array_to_value(
    array: &dyn Array,
    col_type: &ColumnType,
    row: usize,
) -> Result<Value, ArrowError>
Expand description

Extract a Value from an Arrow array at the given row index, based on the expected ColumnType from the entity definition.

For date/time column types, this produces chrono Value variants when the with-chrono feature is enabled, or time-crate variants when only with-time is enabled.