static void usePartitionColumns(Properties properties, Table table, List<String> partColNames) {
    if (properties.containsKey(org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.META_TABLE_PARTITION_COLUMNS)) {
      usePartitionColumns(properties, partColNames);
    } else {
      List<FieldSchema> partCols = table.getPartCols();
      String partNames = partCols.stream().map(FieldSchema::getName).collect(Collectors.joining("/"));
      String partTypes = partCols.stream().map(FieldSchema::getType).collect(Collectors.joining(":"));
      properties.setProperty(
        org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.META_TABLE_PARTITION_COLUMNS,
        partNames);
      properties.setProperty(
        org.apache.hadoop.hive.metastore.api.hive_metastoreConstants.META_TABLE_PARTITION_COLUMN_TYPES,
        partTypes);
    }
  }
Skip temporary file generation for:
1. MM Tables
2. INSERT operation on full ACID table
ql/src/java/org/apache/hadoop/hive/ql/optimizer/GenMapRedUtils.java