[ 
https://issues.apache.org/jira/browse/PHOENIX-7927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Kyle Purtell updated PHOENIX-7927:
-----------------------------------------
    Summary: Fix EXPLAIN plumbing related NPE in 
DelegateQueryPlan.setOptimizerDecision  (was: Fix EXPLAIN plumbing related NPE 
in TotalSegmentsFunctionIT)

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

Reply via email to