From cf4fa30388ca71e6464e65bc6f90ccf846a55288 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Wed, 11 Sep 2024 14:29:05 -0400 Subject: [PATCH] Update to compile with latest code. --- crates/polars-core/src/series/arithmetic/borrowed.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/polars-core/src/series/arithmetic/borrowed.rs b/crates/polars-core/src/series/arithmetic/borrowed.rs index 65cce0e9450d..118ef6eaa934 100644 --- a/crates/polars-core/src/series/arithmetic/borrowed.rs +++ b/crates/polars-core/src/series/arithmetic/borrowed.rs @@ -180,7 +180,7 @@ impl NumOpsDispatchInner for FixedSizeListType { fn reshape_list_based_on(data: &ArrayRef, shape: &ArrayRef) -> PolarsResult { if let Some(list_chunk) = shape.as_any().downcast_ref::() { let result = LargeListArray::try_new( - list_chunk.data_type().clone(), + list_chunk.dtype().clone(), list_chunk.offsets().clone(), reshape_list_based_on(data, list_chunk.values())?, list_chunk.validity().cloned(), @@ -275,7 +275,7 @@ impl ListChunked { let combined = self.amortized_iter().zip(rhs.list()?.amortized_iter()).map(|(a, b)| { let (Some(a_owner), Some(b_owner)) = (a, b) else { // Operations with nulls always result in nulls: - return Ok(Series::full_null(self.name(), 1, self.dtype())); + return Ok(Series::full_null(self.name().clone(), 1, self.dtype())); }; let a = a_owner.as_ref(); let b = b_owner.as_ref();