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:02:00 UTC
[jira] [Commented] (BEAM-3498) PubsubMessageWithAttributesCoder
should allow null attribute values
[ https://issues.apache.org/jira/browse/BEAM-3498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16331311#comment-16331311 ]
Sameer Abhyankar commented on BEAM-3498:
----------------------------------------
If this is valid, I can provide a pull request to fix this. Thanks.
> 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
> Priority: Major
>
> 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)