public static String getPartitionName(Map<String, String> partitionSpec) throws SemanticException {
    String partitionName = null;
    if (partitionSpec != null) {
      try {
        partitionName = Warehouse.makePartName(partitionSpec, false);
      } catch (MetaException e) {
        throw new SemanticException("partition " + partitionSpec.toString() + " not found");
      }
    }
    return partitionName;
  }
Returns the virtual columns needed for update queries. For ACID queries it is a single ROW__ID, for non-native
tables the list is provided by the {@link HiveStorageHandler#acidVirtualColumns()}.
@param table The table for which we run the query
@return The list of virtual columns used
ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java