You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Sameer Abhyankar (JIRA)" <ji...@apache.org> on 2018/01/18 22:01:00 UTC
[jira] [Created] (BEAM-3498) PubsubMessageWithAttributesCoder
should allow null attribute values
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)