-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Aggs must specify a field or script (or both)
#52226
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
Aggs must specify a field or script (or both)
#52226
Conversation
This adds a validation to VSParserHelper to ensure that a field or script or both are specified by the user. This is technically required today already, but throws an exception much deeper in the agg framework and has a very unintuitive error for the user (as well as eating more resources instead of failing early)
|
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
nik9000
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though I think it'd be nice to have a integ test somewhere that asserts the exception you are looking for. Just one for all the aggs, but something to prove that nothing tricky is happening/ever happens in the exception flow.
|
@elasticmachine update branch |
|
@elasticmachine run elasticsearch-ci/2 |
|
@elasticmachine update branch |
This adds a validation to VSParserHelper to ensure that a field or script or both are specified by the user. This is technically required today already, but throws an exception much deeper in the agg framework and has a very unintuitive error for the user (as well as eating more resources instead of failing early)
With #49661 merged, we can now add validation to VSParserHelper to ensure that a field or script or both are specified by the user.
This is technically required today already, but throws an exception much deeper in the agg framework and has a very unintuitive error for the user (as well as eating more resources instead of failing early)
Also removes a bit of out-dated documentation which does not work, and has not been supported for a while.