// convert the schema to Hive columns
table.getSd().setCols(convertSchema(descriptor.getSchema()));
// copy partitioning info
if (descriptor.isPartitioned()) {
PartitionStrategy ps = descriptor.getPartitionStrategy();
table.getParameters().put(PARTITION_EXPRESSION_PROPERTY_NAME,
Accessor.getDefault().toExpression(ps));
table.setPartitionKeys(partitionColumns(ps, descriptor.getSchema()));
}