clintropolis opened a new pull request, #12995: URL: https://github.com/apache/druid/pull/12995
### Description Makes expression exceptions more consistent by introducing `Function.ValidationException` and `ApplyFunction.ValidationException` to help reduce the chance for inconsistencies in in exception validation error messages. This fixes several issues around missing or vague error messages, such as the sampler API, caused by the use of `Preconditions` without error messages and error messages which did not include the function name. Also fixes docs for the 'fold' apply functions. This PR has: - [ ] been self-reviewed. - [x] added documentation for new or modified features or behaviors. - [x] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links. - [x] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader. - [ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for [code coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md) is met. - [x] been tested in a test Druid cluster. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
