protected void addTblProperties(StringBuilder query) {
    Map<String, String> tblProperties = new HashMap<>();
    tblProperties.put("transactional", "false");
    if (sourceTab != null) { // to avoid NPEs, skip this part if sourceTab is null
      // Exclude all standard table properties.
      Set<String> excludes = getHiveMetastoreConstants();
      excludes.addAll(StatsSetupConst.TABLE_PARAMS_STATS_KEYS);
      for (Map.Entry<String, String> e : sourceTab.getParameters().entrySet()) {
        if (e.getValue() == null) {
          continue;
        }
        if (excludes.contains(e.getKey())) {
          continue;
        }
        tblProperties.put(e.getKey(), HiveStringUtils.escapeHiveCommand(e.getValue()));
      }
    }
    super.addTblProperties(query, tblProperties);
  }
Part of Create operation. All tmp tables are not transactional and are marked as
compaction tables. Additionally...
- Insert-only compaction tables copy source tables' tblproperties, except metastore/statistics
properties.
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactionQueryBuilderForInsertOnly.java