throw new IllegalStateException("ReadContext not initialized properly. " +
"Don't know the Hive Schema.");
}
final MessageType tableSchema = MessageTypeParser.
parseMessageType(metadata.get(HIVE_SCHEMA_KEY));
return new DataWritableRecordConverter(readContext.getRequestedSchema(), tableSchema);
}