Skip to content

Commit

Permalink
fix: Fix object chunked gather (#19811)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Nov 15, 2024
1 parent 989eade commit 9ceedde
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/polars-core/src/series/implementations/object.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,13 @@ where
}

fn take(&self, indices: &IdxCa) -> PolarsResult<Series> {
Ok(self.0.take(indices)?.into_series())
let ca = self.rechunk_object();
Ok(ca.take(indices)?.into_series())
}

unsafe fn take_unchecked(&self, indices: &IdxCa) -> Series {
self.0.take_unchecked(indices).into_series()
let ca = self.rechunk_object();
ca.take_unchecked(indices).into_series()
}

fn take_slice(&self, indices: &[IdxSize]) -> PolarsResult<Series> {
Expand Down

0 comments on commit 9ceedde

Please sign in to comment.