@Override
  protected boolean enableColumnStatsCollecting() {
    return numWhenMatchedUpdateClauses == 0 && numWhenMatchedDeleteClauses == 0;
  }
Now generate the predicate for Where clause.
ql/src/java/org/apache/hadoop/hive/ql/parse/MergeSemanticAnalyzer.java