type.setKind(OrcProto.Type.Kind.STRING);
break;
case VARCHAR:
// The varchar length needs to be written to file and should be available
// from the object inspector
VarcharTypeParams varcharParams = (VarcharTypeParams)
ParameterizedPrimitiveTypeUtils.getTypeParamsFromPrimitiveObjectInspector(
(PrimitiveObjectInspector) treeWriter.inspector);
if (varcharParams == null) {
throw new IllegalArgumentException("No varchar length specified in ORC type");
}
type.setKind(Type.Kind.VARCHAR);
type.setMaximumLength(varcharParams.getLength());
break;
case BINARY:
type.setKind(OrcProto.Type.Kind.BINARY);
break;
case TIMESTAMP: