clintropolis opened a new pull request, #12971: URL: https://github.com/apache/druid/pull/12971
### Description Fixes a bug in `DruidRexExecutor` when reducing constants, where null array constants result in a null pointer exception rather than creating a null literal. This issue was discovered with the `JSON_KEYS` function, but it could happen with expression which would produce a constant null array type. The added `JSON_KEYS` test would fail prior to the changes in this patch, the `JSON_PATHS` test is just for fun. <hr> This PR has: - [x] been self-reviewed. - [x] 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]
