private static JsonSerDe createSerde(Table tbl, HiveConf conf)
throws SerializationError {
try {
Properties tableProps = MetaStoreUtils.getTableMetadata(tbl);
JsonSerDe serde = new JsonSerDe();
serde.initialize(conf, tableProps);
return serde;
} catch (SerDeException e) {
throw new SerializationError("Error initializing serde " + JsonSerDe.class.getName(), e);
}
}