[ 
https://issues.apache.org/jira/browse/BEAM-10869?focusedWorklogId=481643&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-481643
 ]

ASF GitHub Bot logged work on BEAM-10869:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Sep/20 18:32
            Start Date: 10/Sep/20 18:32
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on a change in pull request #12806:
URL: https://github.com/apache/beam/pull/12806#discussion_r486549559



##########
File path: 
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java
##########
@@ -1012,6 +1012,8 @@ public PDone expand(PCollection<T> input) {
         case UNBOUNDED:
           return input
               .apply(MapElements.into(new TypeDescriptor<PubsubMessage>() 
{}).via(getFormatFn()))
+              // TODO(BEAM-10869): Also plump through 
PubsubMessageWithAttributesCoder if needed.
+              .setCoder(PubsubMessagePayloadOnlyCoder.of())

Review comment:
       Won't this break pipeline update?
   
   Also, the implementation only uses the payload so I don't think we need the 
TODO since we don't use any of the other attributes from the message so we can 
leave a comment here stating instead that the unbounded sink only uses the 
payload of the pubsub message.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 481643)
    Time Spent: 20m  (was: 10m)

> Pubsub native write should be supported over fnapi
> --------------------------------------------------
>
>                 Key: BEAM-10869
>                 URL: https://issues.apache.org/jira/browse/BEAM-10869
>             Project: Beam
>          Issue Type: Improvement
>          Components: runner-dataflow
>            Reporter: Boyuan Zhang
>            Priority: P2
>          Time Spent: 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to