Skip to content

Commit

Permalink
chore: sync with append & extend
Browse files Browse the repository at this point in the history
use direct type to avoid extra AsRef type check
  • Loading branch information
flisky committed Jan 25, 2024
1 parent f7bcad4 commit 1ea02e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/polars-core/src/series/implementations/decimal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ impl SeriesTrait for SeriesWrap<DecimalChunked> {

fn extend(&mut self, other: &Series) -> PolarsResult<()> {
polars_ensure!(self.0.dtype() == other.dtype(), extend);
self.0.extend(other.as_ref().as_ref());
let other = other.decimal()?;
self.0.extend(&other.0);
Ok(())
}

Expand Down

0 comments on commit 1ea02e4

Please sign in to comment.