protected long getNextCntr(long cntr) {
    // A very simple counter to keep track of number of rows processed by an
    // operator. It dumps
    // every 1 million times, and quickly before that
    if (cntr >= 1000000) {
      return cntr + 1000000;
    }

    return 10 * cntr;
  }
Replace one parent with another at the same position. Chilren of the new
parent are not updated

@param parent
         the old parent
@param newParent
         the new parent
ql/src/java/org/apache/hadoop/hive/ql/exec/Operator.java