Skip to content

Commit

Permalink
Update direct_runner.py (#32325)
Browse files Browse the repository at this point in the history
* Update direct_runner.py

Improve the error message for DirectRunner.

* Update direct_runner.py
  • Loading branch information
liferoad authored Oct 2, 2024
1 parent bb09de7 commit 9095547
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdks/python/apache_beam/runners/direct/direct_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,9 @@ def visit_transform(self, applied_ptransform):
if isinstance(applied_ptransform.transform, ExternalTransform):
raise RuntimeError(
"Streaming Python direct runner "
"does not support cross-language pipelines.")
"does not support cross-language pipelines."
"Please use other runners such as FlinkRunner, "
"DataflowRunner, or PrismRunner.")

pipeline.visit(VerifyNoCrossLanguageTransforms())

Expand Down

0 comments on commit 9095547

Please sign in to comment.