Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rust, python): don't SO on concat(expressions) #9214

Merged
merged 2 commits into from
Jun 4, 2023
Merged

fix(rust, python): don't SO on concat(expressions) #9214

merged 2 commits into from
Jun 4, 2023

Conversation

ritchie46
Copy link
Member

The concat function recursively called e.append() which ofcourse SO's near ~1000 elements.

We now dispatch to a dedicated expression passing a flat vec of expressions.

fixes #8459

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jun 4, 2023
@avimallu
Copy link
Contributor

avimallu commented Jun 4, 2023

Probably also will be involved in fixing #9201, but can't be sure without a reproducible example.

@ritchie46 ritchie46 merged commit 7ecda52 into main Jun 4, 2023
@ritchie46 ritchie46 deleted the concat branch June 4, 2023 15:10
@zundertj zundertj mentioned this pull request Jun 4, 2023
2 tasks
c-peters pushed a commit to c-peters/polars that referenced this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segmentation fault calling pl.concat/pl.select with a certain number of Expressions
3 participants