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

[8.14] [ESQL] Mark date_diff as requiring all three arguments (#108834) #108874

Merged

Conversation

not-napoleon
Copy link
Member

Backports the following commits to 8.14:

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.
@not-napoleon not-napoleon added :Analytics/ES|QL AKA ESQL >bug auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels May 21, 2024
@elasticsearchmachine elasticsearchmachine merged commit 9bc00f9 into elastic:8.14 May 21, 2024
15 checks passed
@not-napoleon not-napoleon deleted the backport/8.14/pr-108834 branch May 21, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/ES|QL AKA ESQL auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.14.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants