public static HCatSchema getTableSchemaWithPartitionColumns(Configuration conf) throws IOException {
    return getJobInfo(conf).getTableInfo().getAllColumns();
  }
Gets the table schema for the table specified in the HCatOutputFormat.setOutput call
on the specified job context.
Note: This is the complete table-schema, including the record-schema *and* the partitioning schema.
@param conf the Configuration object
@return the table schema, including the record-schema and partitioning schema.
@throws IOException if HCatOutputFormat.setOutput has not been called for the passed context
hcatalog/core/src/main/java/org/apache/hive/hcatalog/mapreduce/HCatBaseOutputFormat.java