You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/11/02 21:17:25 UTC

[GitHub] [beam] dpcollins-google commented on pull request #15727: [BEAM-13052] Add Pub/Sub Lite xlang transforms in python

dpcollins-google commented on pull request #15727:
URL: https://github.com/apache/beam/pull/15727#issuecomment-958169894


   This is confirmed to work with the following code, which runs indefininitely publishing new messages:
   
   ```
   with apache_beam.Pipeline(options=pipeline_options) as pipeline:
       sequenced = pipeline | ReadFromPubSubLite('SUBSCRIPTION_WITH_ONE_MESSAGE')
       messages = sequenced | 'get_just_message' >> apache_beam.Map(lambda message: message.message).with_output_types(PubSubMessage)
       messages | WriteToPubSubLite('SAME_TOPIC_AS_SUBSCRIPTION')
   ```


-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org