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: dont overflow when calculating date range over very long periods #12479

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

MarcoGorelli
Copy link
Collaborator

closes #12461

Comment on lines -692 to +694
let t_weeks = nsecs_to_unit(self.weeks * NS_WEEK);
let t_weeks = nsecs_to_unit(NS_WEEK) * self.weeks;
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 could be cleaner with, say, MS_WEEK and US_WEEK...but this simple change at least fixes the issue

@ritchie46 ritchie46 merged commit f726118 into pola-rs:main Nov 15, 2023
23 checks passed
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.

Unable to create date ranges for very large time periods(>=0.19.13)
2 participants