@Override
    public Object process(Node nd, Stack<Node> stack, NodeProcessorCtx procCtx, Object... nodeOutputs)
        throws SemanticException {
      Operator op = (Operator) nd;
      Statistics stats = op.getStatistics();
      if (stats != null && stats.getRunTimeNumRows() >= 0) {
        try {
          ensureEstimateAcceptable(stats.getNumRows(), stats.getRunTimeNumRows());
        } catch (HiveException e) {
          throw new SemanticException("On operator: " + op, e);
        }
      }
      return null;
    }
Adds an extra check for Explain Analyze queries.
ql/src/java/org/apache/hadoop/hive/ql/hooks/AccurateEstimatesCheckerHook.java