pub fn duration_to_scalar_value(unit: TimeUnit, val: Option<i64>) -> ScalarValue
Cast the 64-bit duration into the arrow ScalarValue with time unit.