* Add json_tree explain format
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
* code review updates
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
* revert all those explain tests
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
* revert explain behavior to old behavior outside of json_tree path
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
* revert doctest updates
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
* when pushdown is disabled, there's no sourcebuilder
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
---------
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Description
Adds a new machine-readable explain format. Working with the other format is fine for humans but hard to parse and analyze in bulk. This should help simplify some types of testing for e.g. #5505 and #5598, as well as address #5519, and enable work that lets us see whether specific optimizations are applied over a query set en masse.
Existing explain queries are unaffected, the new format is accessible via
_plugins/_ppl/_explain?format=json_tree.Related Issues
Resolves #5519
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.