public ObjectInspector getOutputObjectInspector() throws HiveException {
try {
ObjectInspector outInspector;
if (work.getTblDir() != null) {
tableDesc tbl = work.getTblDesc();
Deserializer serde = tbl.getDeserializerClass().newInstance();
serde.initialize(job, tbl.getProperties());
return serde.getObjectInspector();
}
else {
List<partitionDesc> listParts = work.getPartDesc();
currPart = listParts.get(0);
serde = currPart.getTableDesc().getDeserializerClass().newInstance();
serde.initialize(job, currPart.getTableDesc().getProperties());
setPrtnDesc();
currPart = null;
return rowObjectInspector;
}
} catch (Exception e) {