-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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_DIFF()
with just two args fails with NPE
#108383
Labels
Comments
elasticsearchmachine
added
the
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
label
May 7, 2024
Pinging @elastic/es-analytical-engine (Team:Analytics) |
not-napoleon
added a commit
that referenced
this issue
May 21, 2024
Resolves #108383 I didn't see a good place to add a test for this; if there is one, let me know and I'm happy to add it. This fixes a bug where we had incorrectly marked date_diff as having an optional argument, which resulted in an NPE when that argument was not provided. In fact, all three of date_diff's arguments are required. After this change, failing to provide one will cause a parse exception, as one would expect.
not-napoleon
added a commit
to not-napoleon/elasticsearch
that referenced
this issue
May 21, 2024
Resolves elastic#108383 I didn't see a good place to add a test for this; if there is one, let me know and I'm happy to add it. This fixes a bug where we had incorrectly marked date_diff as having an optional argument, which resulted in an NPE when that argument was not provided. In fact, all three of date_diff's arguments are required. After this change, failing to provide one will cause a parse exception, as one would expect.
elasticsearchmachine
pushed a commit
that referenced
this issue
May 21, 2024
…8874) Resolves #108383 I didn't see a good place to add a test for this; if there is one, let me know and I'm happy to add it. This fixes a bug where we had incorrectly marked date_diff as having an optional argument, which resulted in an NPE when that argument was not provided. In fact, all three of date_diff's arguments are required. After this change, failing to provide one will cause a parse exception, as one would expect.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
row date_diff("year", "2021-12-12")
androw date_diff("2021-12-12", "2022-12-12")
will both NPE.The text was updated successfully, but these errors were encountered: