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: Implement abs for Decimal, error on Date/Time/Datetime #13821

Merged
merged 4 commits into from
Jan 19, 2024
Merged

Conversation

stinodego
Copy link
Member

@stinodego stinodego commented Jan 18, 2024

I noticed abs just operated on the physical type, but that makes no sense for dates, e.g. date(1960, 1, 1) gets changed to date(1980, 1, 1). Now it properly raises an error.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jan 18, 2024
@stinodego stinodego marked this pull request as ready for review January 18, 2024 23:27
@stinodego stinodego changed the title fix: Implement abs for Decimal, error on Date/Time/Datetime fix: Implement abs for Decimal, error on Date/Time/Datetime Jan 19, 2024
@ritchie46 ritchie46 merged commit f713e22 into main Jan 19, 2024
22 checks passed
@ritchie46 ritchie46 deleted the abs-fix branch January 19, 2024 13:01
@c-peters c-peters added the accepted Ready for implementation label Jan 23, 2024
r-brink pushed a commit to r-brink/polars that referenced this pull request Jan 24, 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 python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants