-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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: add DATE_TRUNC function #46319
Labels
Comments
Pinging @elastic/es-search |
@astefan does this need approval? I can work on this |
@jbonn360 thank you for your interest in ES-SQL. We do appreciate it. |
@astefan ok cheers |
matriv
added a commit
to matriv/elasticsearch
that referenced
this issue
Sep 8, 2019
DATE_TRUNC(<truncate field>, <date/datetime>) is a function that allows the user to truncate a timestamp to the specified field by zeroing out the rest of the fields. The function is implemented according to the spec from PostgreSQL: https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC Closes: elastic#46319
matriv
added a commit
that referenced
this issue
Sep 11, 2019
DATE_TRUNC(<truncate field>, <date/datetime>) is a function that allows the user to truncate a timestamp to the specified field by zeroing out the rest of the fields. The function is implemented according to the spec from PostgreSQL: https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC Closes: #46319
matriv
added a commit
that referenced
this issue
Sep 11, 2019
DATE_TRUNC(<truncate field>, <date/datetime>) is a function that allows the user to truncate a timestamp to the specified field by zeroing out the rest of the fields. The function is implemented according to the spec from PostgreSQL: https://www.postgresql.org/docs/current/functions-datetime.html#FUNCTIONS-DATETIME-TRUNC Closes: #46319 (cherry picked from commit b37e967)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The DATE_TRUNC function is used to truncate date/datetimes to specified precision.
https://www.w3resource.com/PostgreSQL/date_trunc-function.php
The text was updated successfully, but these errors were encountered: