[
https://issues.apache.org/jira/browse/BEAM-9122?focusedWorklogId=372611&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-372611
]
ASF GitHub Bot logged work on BEAM-9122:
----------------------------------------
Author: ASF GitHub Bot
Created on: 15/Jan/20 22:49
Start Date: 15/Jan/20 22:49
Worklog Time Spent: 10m
Work Description: y1chi commented on pull request #10596: [BEAM-9122] Add
uses_keyed_state step property in python dataflow run…
URL: https://github.com/apache/beam/pull/10596#discussion_r367148827
##########
File path: sdks/python/apache_beam/runners/dataflow/dataflow_runner.py
##########
@@ -950,6 +950,10 @@ def run_ParDo(self, transform_node, options):
step.add_property(PropertyNames.RESTRICTION_ENCODING,
self._get_cloud_encoding(restriction_coder))
+ from apache_beam.runners.common import DoFnSignature
+ if DoFnSignature(transform.dofn).is_stateful_dofn():
Review comment:
should we distinguish streaming pipelines from batch here?
----------------------------------------------------------------
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: 372611)
Time Spent: 1h (was: 50m)
> Add uses_keyed_state step property to python dataflow runner
> ------------------------------------------------------------
>
> Key: BEAM-9122
> URL: https://issues.apache.org/jira/browse/BEAM-9122
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py-core
> Reporter: Yichi Zhang
> Assignee: Yichi Zhang
> Priority: Major
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Add additional step property to dataflow job property when a DoFn is stateful
> in python sdk. So that the backend runner can recognize stateful steps.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)