InigoSJ commented on a change in pull request #12930:
URL: https://github.com/apache/beam/pull/12930#discussion_r526165034
##########
File path: sdks/python/apache_beam/io/gcp/pubsub.py
##########
@@ -444,3 +449,69 @@ def display_data(self):
def writer(self):
raise NotImplementedError
+
+
+class PubSubSourceDescriptor(NamedTuple):
+ """A PubSub source descriptor for ``MultipleReadFromPubSub```"""
+ source: str
+ id_label: str = None
+ timestamp_attribute: str = None
+
+
+class MultipleReadFromPubSub(PTransform):
+ """A ``PTransform`` that expands ``ReadFromPubSub`` to read from multiple
+ subscriptions and/or topics."""
+ def __init__(
+ self,
+ source_list, # type: List[PubSubSourceDescriptor]
Review comment:
Done
----------------------------------------------------------------
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]