protected void addTblProperties(StringBuilder query, Map<String, String> tblProperties) {
    if (tblProperties != null && !tblProperties.isEmpty()) {
      // add TBLPROPERTIES clause to query
      boolean isFirst;
      query.append(" TBLPROPERTIES (");
      isFirst = true;
      for (Map.Entry<String, String> property : tblProperties.entrySet()) {
        if (!isFirst) {
          query.append(", ");
        }
        query.append("'").append(property.getKey()).append("'='").append(property.getValue()).append("'");
        isFirst = false;
      }
      query.append(")");
    }
  }
Part of Create operation. All tmp tables are not transactional and are marked as
compaction tables. Additionally...
- Crud compaction temp tables need tblproperty, "compactiontable."
- Minor crud compaction temp tables need bucketing version tblproperty, if table is bucketed.
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/CompactionQueryBuilder.java