Skip to content

Conversation

coastalwhite
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars labels Jul 23, 2025
Copy link

codecov bot commented Jul 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.32%. Comparing base (8a41060) to head (078046c).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23691      +/-   ##
==========================================
+ Coverage   80.84%   81.32%   +0.48%     
==========================================
  Files        1642     1643       +1     
  Lines      223086   223135      +49     
  Branches     2837     2837              
==========================================
+ Hits       180352   181472    +1120     
+ Misses      42035    40964    -1071     
  Partials      699      699              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

AggState::AggregatedList(column)
},
(true, _) => {
let series = match aggregated {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll trust you on the details that we don't have to make an AggregatedList here but...

match boolean {
    true => a,
    _ => b,
}

This is just if/else and I have no idea how clippy isn't screaming at you 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hahaha, yes true

@@ -204,16 +204,11 @@ impl<'a> AggregationContext<'a> {
groups: Cow<'a, GroupPositions>,
aggregated: bool,
) -> AggregationContext<'a> {
let series = match (aggregated, column.dtype()) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only called at 2 places.

  • One had aggregated=false
  • The other was count.rs, had aggregated=true, but had an constant datatype of IDX_DTYPE.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But could it be hit with an aggregate=true and a List dtype?

Copy link
Collaborator Author

@coastalwhite coastalwhite Jul 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, no such path could be hit. The above two paths were the only ones.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok 👍

@ritchie46 ritchie46 merged commit fa22968 into pola-rs:main Jul 23, 2025
23 checks passed
Washiil pushed a commit to Washiil/polars that referenced this pull request Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants