Sameer Abhyankar created BEAM-3498:
--------------------------------------
Summary: PubsubMessageWithAttributesCoder should allow null
attribute values
Key: BEAM-3498
URL: https://issues.apache.org/jira/browse/BEAM-3498
Project: Beam
Issue Type: Bug
Components: sdk-java-gcp
Reporter: Sameer Abhyankar
Assignee: Chamikara Jayalath
PubsubMessageWithAttributesCoder does not allow for a PubsubMessage with "null"
attribute value based on the following code snippet in
PubsubMessageWithAttributesCoder.java:
....
private static final Coder<Map<String, String>> ATTRIBUTES_CODER =
NullableCoder.of(MapCoder.of(StringUtf8Coder.of(), StringUtf8Coder.of()));
...
If I am not mistaken, this should be:
....
private static final Coder<Map<String, String>> ATTRIBUTES_CODER =
NullableCoder.of(MapCoder.of(StringUtf8Coder.of(),
NullableCoder.of(StringUtf8Coder.of())));
...
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)