Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11766

In HdfsScanNode.buildBinaryStatsPredicate, an Expr needs to be cloned

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.3.0
    • Frontend
    • None
    • ghx-label-4

    Description

      In HdfsScanNode.buildBinaryStatsPredicate exists the following code:

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

      This contains a potential bug.  The constExpr is mutable and the creation of the new BinaryPredicate can change the innards of the inputPred Expr.

      Attachments

        Issue Links

          Activity

            People

              scarlin Steve Carlin
              scarlin Steve Carlin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: