egalpin commented on issue #21162: URL: https://github.com/apache/beam/issues/21162#issuecomment-1370113175
This is indeed correct usage, and I was under the impression that this should work. Based on what you're saying/seeing, I'm suspicious that the coder might not be propagated through the PubsubIO/write code path. I'll try to trace the code to confirm and/or validate behaviour as well. @codertimu you could try to set the default coder for the pubsub message class[1] to see if that will unblock you: ```java PipelineOptions options = PipelineOptionsFactory.create(); Pipeline p = Pipeline.create(options); CoderRegistry cr = p.getCoderRegistry(); cr.registerCoder(PubsubMessage.class, PubsubMessageWithAttributesAndMessageIdAndOrderingKeyCoder.class); ``` [1] https://beam.apache.org/documentation/programming-guide/#setting-default-coder -- 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]
