private boolean processRespectIgnoreNulls(WindowFunctionInfo functionInfo, ASTNode node)
      throws SemanticException {

    for(int i=0; i < node.getChildCount(); i++) {
      int type = node.getChild(i).getType();
      switch(type) {
      case HiveParser.TOK_RESPECT_NULLS:
        if (!functionInfo.isSupportsNullTreatment()) {
          throw new SemanticException(ErrorMsg.NULL_TREATMENT_NOT_SUPPORTED, functionInfo.getDisplayName());
        }
        return true;
      case HiveParser.TOK_IGNORE_NULLS:
        if (!functionInfo.isSupportsNullTreatment()) {
          throw new SemanticException(ErrorMsg.NULL_TREATMENT_NOT_SUPPORTED, functionInfo.getDisplayName());
        }
        return false;
      }
    }

    return true;
  }
It will check if this is analyze ... compute statistics noscan
@param tree
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java