public static boolean isNoAutoCompactSet(Map<String, String> dbParameters, Map<String, String> tblParameters) {
    String dbNoAutoCompact = getNoAutoCompact(dbParameters);
    if (dbNoAutoCompact == null) {
      LOG.debug("Using table configuration '" + hive_metastoreConstants.NO_AUTO_COMPACT + "' for compaction");
      String noAutoCompact = getNoAutoCompact(tblParameters);
      return Boolean.parseBoolean(noAutoCompact);
    }
    LOG.debug("Using database configuration '" + hive_metastoreConstants.NO_AUTO_COMPACT + "' for compaction");
    return Boolean.parseBoolean(dbNoAutoCompact);
  }
Because TABLE_NO_AUTO_COMPACT was originally assumed to be NO_AUTO_COMPACT and then was moved
to no_auto_compact, we need to check it in both cases.
Check the database level no_auto_compact , if present it is given priority else table level no_auto_compact is considered.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/MetaStoreUtils.java