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

sql/sem/builtins: support more time spans for EXTRACT and DATE_TRUNC #41784

Merged
merged 1 commit into from Oct 22, 2019

Conversation

rogaps
Copy link
Contributor

@rogaps rogaps commented Oct 21, 2019

PostgreSQL supports millennium, century, decade, isoyear, isodow, and
julian as field name in EXTRACT function. PostgreSQL supports
millennium, century, and decade as field name in DATE_TRUNC function.
This patch adds supports of those elements to EXTRACT and DATE_TRUNC.

Issue: #41548

Release note (sql change): EXTRACT now supports millennium, century,
decade, isoyear, isodow, and julian for date, timestamp, and timestamptz.
DATE_TRUNC now supports millennium, century, and decade for date,
timestamp, and timestamptz.

PostgreSQL supports millennium, century, decade, isoyear, isodow, and
julian as field name in EXTRACT function. PostgreSQL supports
millennium, century, and decade as field name in DATE_TRUNC function.
This patch adds supports of those elements to EXTRACT and DATE_TRUNC.

Issue: cockroachdb#41548

Release note (sql change): EXTRACT now supports millennium, century,
decade, isoyear, isodow, and julian for date, timestamp, and timestamptz.
DATE_TRUNC now supports millennium, century, and decade for date,
timestamp, and timestamptz.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rohany
Copy link
Contributor

rohany commented Oct 21, 2019

Guessing maybe @mjibson is a good reviewer?

@rohany rohany requested a review from maddyblue October 21, 2019 22:27
@maddyblue
Copy link
Contributor

bors r+

@craig
Copy link
Contributor

craig bot commented Oct 21, 2019

Build failed

@maddyblue
Copy link
Contributor

bors r+

craig bot pushed a commit that referenced this pull request Oct 21, 2019
41784: sql/sem/builtins: support more time spans for EXTRACT and DATE_TRUNC r=mjibson a=rogaps

PostgreSQL supports millennium, century, decade, isoyear, isodow, and
julian as field name in EXTRACT function. PostgreSQL supports
millennium, century, and decade as field name in DATE_TRUNC function.
This patch adds supports of those elements to EXTRACT and DATE_TRUNC.

Issue: #41548

Release note (sql change): EXTRACT now supports millennium, century,
decade, isoyear, isodow, and julian for date, timestamp, and timestamptz.
DATE_TRUNC now supports millennium, century, and decade for date,
timestamp, and timestamptz.

Co-authored-by: Roga Pria Sembada <rogaps@gmail.com>
@craig
Copy link
Contributor

craig bot commented Oct 22, 2019

Build succeeded

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.

None yet

4 participants