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: raise proper error instead of panicking when result of truncation is non-existent datetime #14958

Merged
merged 1 commit into from
Mar 10, 2024

Conversation

MarcoGorelli
Copy link
Collaborator

closes #14957

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Mar 10, 2024
@MarcoGorelli MarcoGorelli marked this pull request as ready for review March 10, 2024 10:24
Copy link

codecov bot commented Mar 10, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 80.99%. Comparing base (02040aa) to head (ca2d1ad).
Report is 1 commits behind head on main.

Files Patch % Lines
crates/polars-time/src/windows/duration.rs 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14958      +/-   ##
==========================================
- Coverage   81.02%   80.99%   -0.03%     
==========================================
  Files        1332     1333       +1     
  Lines      172969   172983      +14     
  Branches     2458     2458              
==========================================
- Hits       140143   140108      -35     
- Misses      32359    32408      +49     
  Partials      467      467              

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

@ritchie46 ritchie46 merged commit 06116df into pola-rs:main Mar 10, 2024
24 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.

dt.truncate may panic on non-existent datetimes
2 participants