You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Steve Carlin (Jira)" <ji...@apache.org> on 2022/12/01 00:08:00 UTC

[jira] [Created] (IMPALA-11766) In HdfsScanNode.buildBinaryStatsPredicate, an Expr needs to be cloned

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)