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

Incorrect results for last_day_of_month function #2452

Closed
guyco33 opened this issue Jan 9, 2020 · 0 comments · Fixed by #2454
Closed

Incorrect results for last_day_of_month function #2452

guyco33 opened this issue Jan 9, 2020 · 0 comments · Fixed by #2454
Assignees
Labels
bug Something isn't working correctness
Milestone

Comments

@guyco33
Copy link
Member

guyco33 commented Jan 9, 2020

SELECT last_day_of_month(DATE'2019-08-01') --> 2019-07-31 inorrect
SELECT last_day_of_month(DATE'2019-08-02') --> 2019-08-31 correct

SELECT last_day_of_month(TIMESTAMP'2019-07-31 23:59:59') --> 2019-07-31 correct
SELECT last_day_of_month(TIMESTAMP'2019-08-01 00:00:00') --> 2019-07-31 inorrect
SELECT last_day_of_month(TIMESTAMP'2019-08-01 00:00:01') --> 2019-08-31 correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctness
Development

Successfully merging a pull request may close this issue.

2 participants