Indhumathi27 opened a new pull request, #6128:
URL: https://github.com/apache/hive/pull/6128

   
   
   ### What changes were proposed in this pull request?
   This change adds a defensive null check before accessing 
`getColumnExprMap()` 
   
   
   ### Why are the changes needed?
   This PR fixes a `NullPointerException` (or `colExprMap is null` issue) that 
occurs when the parent operator is a `UnionOperator` during column statistics 
or partition column inference.
   
   The root cause is that `UnionOperator` does not initialize `colExprMap`, 
since it merely merges rows from multiple inputs and does not perform column 
expression transformations.  
   Existing code paths assumed that every parent operator had a non-null 
`colExprMap`, which led to NPEs when traversing the operator tree.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   Test scenario added
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to