diff --git a/crates/polars-arrow/src/compute/temporal.rs b/crates/polars-arrow/src/compute/temporal.rs index b8300a7ed306..1198c04bb152 100644 --- a/crates/polars-arrow/src/compute/temporal.rs +++ b/crates/polars-arrow/src/compute/temporal.rs @@ -203,7 +203,7 @@ where TimeUnit::Microsecond => timestamp_us_to_datetime, TimeUnit::Nanosecond => timestamp_ns_to_datetime, }; - Ok(PrimitiveArray::::from_iter( + Ok(PrimitiveArray::::from_trusted_len_iter( array.iter().map(|v| v.map(|x| op(func(*x)))), )) },