-
Notifications
You must be signed in to change notification settings - Fork 159
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] Timestamp Truncation #2158
Conversation
e301885
to
17740ba
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2158 +/- ##
==========================================
+ Coverage 85.06% 85.08% +0.01%
==========================================
Files 68 68
Lines 7360 7376 +16
==========================================
+ Hits 6261 6276 +15
- Misses 1099 1100 +1
|
193391c
to
304b30a
Compare
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.
Nice! Doing the math ourselves was a good call :)
Closes #2107
This PR adds a method to truncate the datetime column to the specified interval e.g. "1 day".
Valid time units are: 'microsecond', 'millisecond', 'second', 'minute', 'hour', 'day', 'week'.
Optional start time for truncation. If provided, truncation will be done from this start time, otherwise truncation will be done from the beginning of the epoch.