void checkValid() throws SemanticException {
      if (throwError) {
        throw new SemanticException(errMsg + errorNode.toStringTree());
      }
    }
Do the recursive work for visit
ql/src/java/org/apache/hadoop/hive/ql/parse/PTFTranslator.java