@Override
  public boolean mayNeedWriteId() {
    return isExplicitStatsUpdate || AcidUtils.isToInsertOnlyTable(null, getProps()) ||
        (AcidUtils.isTransactionalTable(getProps()) && !isFullAcidConversion);
  }
DDL task description for ALTER TABLE ... SET TBLPROPERTIES ... commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/misc/properties/AlterTableSetPropertiesDesc.java