public void setAllowStatefulFunctions(boolean allowStatefulFunctions) {
    this.allowStatefulFunctions = allowStatefulFunctions;
  }
@param allowStatefulFunctions
         whether to allow stateful UDF invocations
ql/src/java/org/apache/hadoop/hive/ql/parse/type/TypeCheckCtx.java