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

Quanlong Huang resolved IMPALA-11766.
-------------------------------------
    Fix Version/s: Impala 4.3.0
         Assignee: Steve Carlin
       Resolution: Fixed

Resolving this. Thank [~scarlin] !

> In HdfsScanNode.buildBinaryStatsPredicate, an Expr needs to be cloned
> ---------------------------------------------------------------------
>
>                 Key: IMPALA-11766
>                 URL: https://issues.apache.org/jira/browse/IMPALA-11766
>             Project: IMPALA
>          Issue Type: Bug
>          Components: Frontend
>            Reporter: Steve Carlin
>            Assignee: Steve Carlin
>            Priority: Major
>             Fix For: Impala 4.3.0
>
>
> In HdfsScanNode.buildBinaryStatsPredicate exists the following code:
> {code:java}
>   private void buildBinaryStatsPredicate(Analyzer analyzer, SlotRef inputSlot,
>       BinaryPredicate inputPred, BinaryPredicate.Operator op) {
>     // Obtain the rhs expr of the input predicate
>     Expr constExpr = inputPred.getChild(1);
>     ...
>     BinaryPredicate statsPred = new BinaryPredicate(op, slot, 
> constExpr);{code}
> This contains a potential bug.  The constExpr is mutable and the creation of 
> the new BinaryPredicate can change the innards of the inputPred Expr.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to