Skip to content

Conversation

@polyfractal
Copy link
Contributor

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.

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)
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-analytics-geo (:Analytics/Aggregations)

Copy link
Member

@nik9000 nik9000 left a 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.

@bpintea bpintea added v7.8.0 and removed v7.7.0 labels Mar 25, 2020
@polyfractal
Copy link
Contributor Author

@elasticmachine update branch

@polyfractal
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/2

@polyfractal
Copy link
Contributor Author

@elasticmachine update branch

@polyfractal polyfractal merged commit 9f165bd into elastic:master Apr 23, 2020
polyfractal added a commit that referenced this pull request Apr 23, 2020
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants