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: Fix enum scalar output #19301

Merged
merged 1 commit into from
Oct 18, 2024
Merged

fix: Fix enum scalar output #19301

merged 1 commit into from
Oct 18, 2024

Conversation

ritchie46
Copy link
Member

fixes #19269

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Oct 18, 2024
@@ -85,16 +85,12 @@ impl EnumChunkedBuilder {
let length = arr.len() as IdxSize;
let ca = unsafe {
UInt32Chunked::new_with_dims(
Arc::new(Field::new(
self.name,
DataType::Enum(Some(self.rev.clone()), self.ordering),
Copy link
Member Author

Choose a reason for hiding this comment

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

Invariant: Always the same physical type.

@ritchie46 ritchie46 merged commit 3dc421a into main Oct 18, 2024
23 of 24 checks passed
@ritchie46 ritchie46 deleted the enum branch October 18, 2024 11:49
Copy link

codecov bot commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 82.85714% with 6 lines in your changes missing coverage. Please review.

Project coverage is 80.03%. Comparing base (dae6cd9) to head (15b6dd1).
Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...polars-core/src/chunked_array/ops/aggregate/mod.rs 82.35% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #19301      +/-   ##
==========================================
+ Coverage   80.00%   80.03%   +0.02%     
==========================================
  Files        1528     1528              
  Lines      209850   209869      +19     
  Branches     2419     2419              
==========================================
+ Hits       167894   167967      +73     
+ Misses      41405    41351      -54     
  Partials      551      551              

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

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.

List min/max operations on List[Enum] are returning Strings
1 participant