datatypes::value

Function duration_to_scalar_value

Source
pub fn duration_to_scalar_value(unit: TimeUnit, val: Option<i64>) -> ScalarValue
Expand description

Cast the 64-bit duration into the arrow ScalarValue with time unit.