scwhittle commented on issue #20978:
URL: https://github.com/apache/beam/issues/20978#issuecomment-1248000367
I don't think so, internal impl just replaces PubsubUnboundedSource which is
before the ParseFn.
I'm not even sure if this bug is really that pubsub specific or just a coder
issue with SchemaCoder/AvroCoder compatibility.
Unless the bug is just that PubsubIO is doing somethign wrong with the
implementation of that method
Schema schema = AvroUtils.getSchema(GenericRecord.class, avroSchema);
AvroCoder<GenericRecord> coder = AvroCoder.of(GenericRecord.class,
avroSchema);
return Read.newBuilder(parsePayloadUsingCoder(coder))
.setCoder(
SchemaCoder.of(
schema,
TypeDescriptor.of(GenericRecord.class),
AvroUtils.getToRowFunction(GenericRecord.class, avroSchema),
AvroUtils.getFromRowFunction(GenericRecord.class)))
.build();
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]