-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat!: Enforce deprecation of offset
arg in truncate
and round
#16655
Conversation
offset
arg in truncate
and round
offset
arg in truncate
and round
ead2e81
to
2f01f94
Compare
pub fn truncate_ns(&self, t: i64, tz: Option<&Tz>) -> PolarsResult<i64> { | ||
let t = self.every.truncate_ns(t, tz)?; | ||
self.offset.add_ns(t, tz) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was never a huge fan how of truncate_*
would both truncate and apply an offset..
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #16655 +/- ##
==========================================
+ Coverage 81.49% 81.54% +0.04%
==========================================
Files 1416 1414 -2
Lines 186880 186349 -531
Branches 3023 3010 -13
==========================================
- Hits 152289 151949 -340
+ Misses 34059 33870 -189
+ Partials 532 530 -2 ☔ View full report in Codecov by Sentry. |
Good to go. Can you rebase? |
offset
arg in truncate
and round
offset
arg in truncate
and round
This simplifies quite a lot
This will make perf improvements for truncate and round easier
Adding "do not merge" for now, until it's finalised that it's time to merge things for 1.0