Skip to content

perf: Move literal group_by keys out of grouping#27325

Open
gab23r wants to merge 1 commit intopola-rs:mainfrom
gab23r:perf/simplify-literal-groupby-keys
Open

perf: Move literal group_by keys out of grouping#27325
gab23r wants to merge 1 commit intopola-rs:mainfrom
gab23r:perf/simplify-literal-groupby-keys

Conversation

@gab23r
Copy link
Copy Markdown
Contributor

@gab23r gab23r commented Apr 15, 2026

Closes #22623

This optimization moves literal columns outside of the group_by. If the the group_by keys contains only literals it becomes a select.

Do we want to create a new flag to pilot this optimization ?

I used AI and I carefully review and think this it is correct.

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move literal group_by keys out of the grouping

1 participant