apurtell opened a new pull request, #2527:
URL: https://github.com/apache/phoenix/pull/2527

   `EXPLAIN (FORMAT JSON) <stmt>` returns a single VARCHAR cell whose value is 
the Jackson serialization of the in-memory `ExplainPlanAttributes` tree. A new 
`ExplainJsonRenderer` owns a private static `ObjectWriter` configured for the 
EXPLAIN JSON contract and a `DefaultPrettyPrinter` whose `DefaultIndenter` is 
set on both the object and array indenters, so the output is human readable 
with two space indentation for both objects and arrays, `render(...)` wraps 
`JsonProcessingException` as `SQLException`. 
`PhoenixStatement#ExecutableExplainStatement.compilePlan` branches on 
`getOptions().getFormat()`. `TEXT` is unchanged. `JSON` skips 
`renderTopOfPlanText` and emits exactly one row carrying the rendered document, 
with the three plan-total estimate cells  attached to the first row. 
`regionLocations` populates under `(REGIONS, FORMAT JSON)` and is `null` 
otherwise.
   
   Co-authored-by: Claude Opus 4.8[1m] <[email protected]>


-- 
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]

Reply via email to