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): Decimal mean agg dtype was incorrect in IR #18577

Merged
merged 4 commits into from
Sep 6, 2024

Conversation

orlp
Copy link
Collaborator

@orlp orlp commented Sep 5, 2024

No description provided.

@github-actions github-actions bot added fix Bug fix rust Related to Rust Polars labels Sep 5, 2024
@@ -3,7 +3,8 @@ use recursive::recursive;
use super::*;

fn float_type(field: &mut Field) {
if (field.dtype.is_numeric() || field.dtype == DataType::Boolean)
if (field.dtype.is_numeric()
|| matches!(field.dtype, DataType::Decimal(..) | DataType::Boolean))
Copy link
Member

Choose a reason for hiding this comment

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

Datatype variant is feature flagged.

Though I think we should remove that flag and have all dtypes, but only the implementations feature flagged.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ritchie46 It's a no-win situation, because then you need to feature flag calls to those implementations =/

Copy link
Member

Choose a reason for hiding this comment

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

Alright, then feature gate the datatype. 🤷

@orlp orlp merged commit e94ada3 into pola-rs:main Sep 6, 2024
19 of 21 checks passed
@c-peters c-peters added the accepted Ready for implementation label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation fix Bug fix rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants