Skip to content

Commit

Permalink
Avoid using python teststream with prism.
Browse files Browse the repository at this point in the history
  • Loading branch information
lostluck committed Oct 21, 2024
1 parent dc98cfa commit 6f5a58e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdks/python/apache_beam/runners/direct/direct_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ def accept(self, pipeline):

def visit_transform(self, applied_ptransform):
transform = applied_ptransform.transform
# Python SDK assumes the direct runner TestStream implementation is being used.
if isinstance(transform, TestStream):
self.supported_by_prism_runner = False
if isinstance(transform, beam.ParDo):
dofn = transform.dofn
# It's uncertain if the Prism Runner supports execution of CombineFns
Expand Down

0 comments on commit 6f5a58e

Please sign in to comment.