Steve Carlin created IMPALA-11766:
-------------------------------------

             Summary: 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


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)

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

Reply via email to