Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20370cb

Browse files
committed
exclude unsupported state
1 parent ad9b0dc commit 20370cb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sdks/python/apache_beam/runners/direct/direct_runner.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,15 @@ def visit_transform(self, applied_ptransform):
141141
if userstate.is_stateful_dofn(dofn):
142142
# https://github.com/apache/beam/issues/32786 -
143143
# Remove once Real time clock is used.
144-
_, timer_specs = userstate.get_dofn_specs(dofn)
144+
state_specs, timer_specs = userstate.get_dofn_specs(dofn)
145145
for timer in timer_specs:
146146
if timer.time_domain == TimeDomain.REAL_TIME:
147147
self.supported_by_prism_runner = False
148148

149+
for state in state_specs:
150+
if isinstance(state, userstate.CombiningValueStateSpec):
151+
self.supported_by_prism_runner = False
152+
149153
# Use BundleBasedDirectRunner if other runners are missing needed features.
150154
runner = BundleBasedDirectRunner()
151155

0 commit comments

Comments
 (0)