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

[Date] [Datetime] [Timestamp] Handle QUARTER, WEEK(DAY), ISOWEEK #39

Merged
merged 2 commits into from
Apr 9, 2024

Conversation

ohaibbq
Copy link

@ohaibbq ohaibbq commented Apr 3, 2024

A number of bugfixes here!

  • Full range of dates 0001-01-01 - 9999-12-31 now supported. Previously dateValueFromLiteral hit int64 caps due to the time.Hour multiplication occurring before we divided it by time.Second.
  • QUARTER support for DATE_ADD
  • WEEK, WEEK(DAY OF WEEK) support for DATE_DIFF, DATE_TRUNC
  • ISOWEEK, ISOYEAR, QUARTER support for DATE_TRUNC

Most date function logic has been de-duplicated and now DATETIME and TIMESTAMP functions defer to DATE methods for date parts at the day level or higher.

@ohaibbq ohaibbq merged commit 5cfbbca into candidate/rb20240201 Apr 9, 2024
7 checks passed
@ohaibbq ohaibbq deleted the dan/dates branch July 8, 2024 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants