From 352b997bf505c6e9398802cc9717a9657adf38d3 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:01:50 +0100 Subject: [PATCH] from_trusted_len_iter --- crates/polars-arrow/src/compute/temporal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))), )) },