// This also gets us around the Enum issue since we just take the value
// and convert it to a string. Yay!
case BINARY:
if (recordSchema.getType() == Type.FIXED){
Fixed fixed = (Fixed) datum;
return fixed.bytes();
} else if (recordSchema.getType() == Type.BYTES){
return AvroSerdeUtils.getBytesFromByteBuffer((ByteBuffer) datum);
} else {
throw new AvroSerdeException("Unexpected Avro schema for Binary TypeInfo: " + recordSchema.getType());
}