Skip to content

Conversation

@mcrumiller
Copy link
Contributor

Fixes #25648.

I left out arr.agg and arr.eval from the unit test because these take a separate path and have a separate error message.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Dec 5, 2025
@codecov
Copy link

codecov bot commented Dec 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.49%. Comparing base (8ab1657) to head (40e1767).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25650      +/-   ##
==========================================
- Coverage   79.58%   79.49%   -0.09%     
==========================================
  Files        1743     1743              
  Lines      240439   240455      +16     
  Branches     3038     3038              
==========================================
- Hits       191347   191150     -197     
- Misses      48310    48523     +213     
  Partials      782      782              

☔ 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.

@mcrumiller mcrumiller marked this pull request as draft December 6, 2025 02:37
Comment on lines +63 to +74
impl<'a> FieldsMapper<'a> {
/// Validate that the dtype is a List.
pub fn ensure_is_list(self) -> PolarsResult<Self> {
let dt = self.args()[0].dtype();
polars_ensure!(
dt.is_list(),
InvalidOperation: format!("expected List data type for list operation, got: {:?}", dt)
);
Ok(self)
}
}

Copy link
Contributor Author

@mcrumiller mcrumiller Dec 6, 2025

Choose a reason for hiding this comment

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

I moved this here since it's only ever referenced in this module, so it makes a bit more sense here. Also, we now use the debug formatting for the output datatype to better align with our polars datatypes, i.e. we now get List(Int8) instead of list[i8].

@mcrumiller mcrumiller marked this pull request as ready for review December 6, 2025 13:59
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.

collect_schema() succeeds for arr.* functions on non-array columns

1 participant