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: Implement subtraction of DATEs #37692

Closed
matriv opened this issue Jan 22, 2019 · 2 comments
Closed

SQL: Implement subtraction of DATEs #37692

matriv opened this issue Jan 22, 2019 · 2 comments

Comments

@matriv
Copy link
Contributor

matriv commented Jan 22, 2019

Implement subtraction of dates in number of days, similar to:

postgres=# select '2001-02-02'::date - '2000-01-01'::date as diff;
 diff
------
  398
(1 row)

Consider using a new function like DATE_DIFF instead of - operator, or maybe support both.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@matriv
Copy link
Contributor Author

matriv commented Apr 9, 2020

Closing this as DATE_DIFF has been implemented.

@matriv matriv closed this as completed Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants