apurtell opened a new pull request, #2532: URL: https://github.com/apache/phoenix/pull/2532
NPE in setOptimizerDecision because the delegate is null, via `TotalSegmentsFunctionIT`. `getApplicablePlansForSingleFlatQuery` can call `recordDecision` on a `DelegateQueryPlan` with a null delegate. `ClientProcessingPlan` overrides `getContext()` / `getTableRef()` / `getProjector()` to use local fields, so a null delegate is fine except for the two optimizer-decision accessors that `DelegateQueryPlan` is forwarding unconditionally. This is a regression from PHOENIX-7891 that breaks any query involving `TOTAL_SEGMENTS`. 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]
