nrj179 opened a new pull request, #30079:
URL: https://github.com/apache/beam/pull/30079
Adding below lines in
PubsubIO.readMessagesWithAttributesAndMessageIdAndOrderingKey()
`.setNeedsAttributes(true)
.setNeedsMessageId(true)
`
would enable PubsubUnboundedSource.expand method to select the correct
Serializable function to parse PubsubMessage.
```
if (getNeedsAttributes() || getNeedsMessageId()) {
function = new PubsubMessages.ParsePubsubMessageProtoAsPayload();
} else {
function = new DeserializeBytesIntoPubsubMessagePayloadOnly();
}
```
Thus preventing **the CoderException: cannot encode a null String** in
PubsubMessageWithAttributesAndMessageIdAndOrderingKeyCoder.encode.
--
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]