Skip to content

Commit

Permalink
remove unneeded string alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Dec 3, 2021
1 parent 7106377 commit 634f4bb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions polars/polars-lazy/src/physical_plan/executors/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ impl Executor for StackExec {
})?;

for s in res {
let name = s.name().to_string();
df.replace_or_add(&name, s)?;
df.with_column(s)?;
}

state.clear_expr_cache();
Expand Down

0 comments on commit 634f4bb

Please sign in to comment.