apurtell opened a new pull request, #2545: URL: https://github.com/apache/phoenix/pull/2545
Server-side `UPSERT SELECT` and `DELETE` compile their inner scan as an aggregating `SELECT COUNT(1)` whose count reports how many rows were touched. Under `EXPLAIN (VERBOSE)` that internal rewrite leaked as a misleading `PROJECT COUNT(1)` line (and `serverProject: ["COUNT(1)"]` in JSON) on the inner scan rather than describing the mutation. `ExplainTable` factors the per-scan `PROJECT` naming into a reusable static `projectedColumnNames(RowProjector)` and adds `overrideMutationProject`, which rewrites the `serverProject` attribute with the user-facing projection for `UPSERT SELECT` and `DELETE`. 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]
