apurtell opened a new pull request, #2531: URL: https://github.com/apache/phoenix/pull/2531
Three fixes for bugs discovered while generating EXPLAIN/EXPLAIN VERBOSE/EXPLAIN JSON examples. `LiteralExpression.toString()` rendered typed-null literals as empty. Output now shows `BSON_VALUE(..., null)` instead of `BSON_VALUE(..., )`. Leading whitespace was baked into functional index column names. Fixed by trimming at creation. Output now shows `PROJECT "BSON_VALUE(...)"` instead of `PROJECT " BSON_VALUE(...)"`. `REWRITE INDEX EXPRESSION <expr> AS <index col>` breadcrumb was missing because it was always silently dropped. Drop the eager emission, store the col to expr substitution pairs on `StatementContext`, and emit one breadcrumb per actually fired substitution from `QueryOptimizer.recordDecision`. 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]
