You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2026/06/15 15:43:00 UTC
[jira] [Resolved] (PHOENIX-7927) Fix EXPLAIN plumbing related NPE in DelegateQueryPlan.setOptimizerDecision
[ https://issues.apache.org/jira/browse/PHOENIX-7927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Kyle Purtell resolved PHOENIX-7927.
------------------------------------------
Resolution: Fixed
> Fix EXPLAIN plumbing related NPE in DelegateQueryPlan.setOptimizerDecision
> --------------------------------------------------------------------------
>
> Key: PHOENIX-7927
> URL: https://issues.apache.org/jira/browse/PHOENIX-7927
> Project: Phoenix
> Issue Type: Sub-task
> Reporter: Andrew Kyle Purtell
> Assignee: Andrew Kyle Purtell
> Priority: Major
> Fix For: PHOENIX-7876-feature
>
>
> 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}}.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)