TheNeuralBit commented on a change in pull request #12827:
URL: https://github.com/apache/beam/pull/12827#discussion_r503535591
##########
File path:
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/AvroUtils.java
##########
@@ -428,6 +432,35 @@ public static GenericRecord toGenericRecord(
return new GenericRecordToRowFn(schema);
}
+ public static Row avroBytesToRow(byte[] bytes, Schema schema) {
+ try {
+ org.apache.avro.Schema avroSchema = AvroUtils.toAvroSchema(schema);
+ AvroCoder<GenericRecord> coder = AvroCoder.of(avroSchema);
Review comment:
Looks good, thanks for working through it :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]