[
https://issues.apache.org/jira/browse/BEAM-8335?focusedWorklogId=338913&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-338913
]
ASF GitHub Bot logged work on BEAM-8335:
----------------------------------------
Author: ASF GitHub Bot
Created on: 05/Nov/19 18:29
Start Date: 05/Nov/19 18:29
Worklog Time Spent: 10m
Work Description: KevinGG commented on pull request #9953: [BEAM-8335]
Adds support for multi-output TestStream
URL: https://github.com/apache/beam/pull/9953#discussion_r342719474
##########
File path: sdks/python/apache_beam/pvalue.py
##########
@@ -201,6 +201,43 @@ class PDone(PValue):
pass
+class PTuple(object):
+ """An object grouping multiple PCollections.
+
+ This class is useful for returning a named tuple of PCollections from a
+ composite.
+ """
+
+ def __init__(self, pcoll_dict):
+ """Initializes this named tuple with a dictionary of tagged PCollections.
+ """
+ self._pcolls = pcoll_dict
+
+ def __str__(self):
+ return '<%s>' % self._str_internal()
Review comment:
Can we use `str.format()` instead of `%`? Some
[example](https://realpython.com/python-f-strings/#option-1-formatting).
`str.format()` is ported back to Python 2.7, so it should be available. But
since this is outside of `interactive` package, we can just leave it as it is.
----------------------------------------------------------------
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: 338913)
Time Spent: 18h 20m (was: 18h 10m)
> Add streaming support to Interactive Beam
> -----------------------------------------
>
> Key: BEAM-8335
> URL: https://issues.apache.org/jira/browse/BEAM-8335
> Project: Beam
> Issue Type: Improvement
> Components: runner-py-interactive
> Reporter: Sam Rohde
> Assignee: Sam Rohde
> Priority: Major
> Time Spent: 18h 20m
> Remaining Estimate: 0h
>
> This issue tracks the work items to introduce streaming support to the
> Interactive Beam experience. This will allow users to:
> * Write and run a streaming job in IPython
> * Automatically cache records from unbounded sources
> * Add a replay experience that replays all cached records to simulate the
> original pipeline execution
> * Add controls to play/pause/stop/step individual elements from the cached
> records
> * Add ability to inspect/visualize unbounded PCollections
--
This message was sent by Atlassian Jira
(v8.3.4#803005)