private void set(Type type, ASTNode ast) {
      if (this.type != Type.NONE) {
        STATIC_LOG.warn("Setting " + type + " when already " + this.type + "; node " + ast.dump()
            + " vs old node " + nodeOfInterest.dump());
        this.type = Type.UNEXPECTED;
        return;
      }
      this.type = type;
      this.nodeOfInterest = ast;
    }
The context that doPhase1 uses to populate information pertaining to CBO
(currently, this is used for CTAS and insert-as-select).
ql/src/java/org/apache/hadoop/hive/ql/parse/CalcitePlanner.java