-
Notifications
You must be signed in to change notification settings - Fork 915
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
Add datetime::is_leap_year
#8711
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #8711 +/- ##
===============================================
Coverage ? 10.67%
===============================================
Files ? 109
Lines ? 18670
Branches ? 0
===============================================
Hits ? 1993
Misses ? 16677
Partials ? 0 Continue to review full report at Codecov.
|
Co-authored-by: Karthikeyan <[email protected]>
The implementation has changed to largely reusing existing |
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.
Looks great.
@gpucibot merge |
Partly addresses #8676. This PR adds `date_time:: extract_quarter`. The function returns an int `(1,2,3,4)` depending on which quarter of the year the date is in. Also fixed an incorrect date in previous testcase (#8711). Authors: - https://github.com/shaneding Approvers: - Nghia Truong (https://github.com/ttnghia) - Conor Hoekstra (https://github.com/codereport) URL: #8779
Part 1 of #8677
This PR adds
datetime::is_leap_year
. The function returnstrue
for datetime column rows with leap year;false
for rows with non leap years, andnull
for null rows.