You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by bh...@apache.org on 2020/05/29 15:47:45 UTC

[beam] branch release-2.22.0 updated: Enables proto holders for testing runner API. Without this x-lang can be broken for some execution paths where this property get enabled automatically. (#11854)

This is an automated email from the ASF dual-hosted git repository.

bhulette pushed a commit to branch release-2.22.0
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/release-2.22.0 by this push:
     new 3a61fad  Enables proto holders for testing runner API. Without this x-lang can be broken for some execution paths where this property get enabled automatically. (#11854)
3a61fad is described below

commit 3a61fade41bbd5eb70434f00f707d2ac08dd4aa8
Author: Chamikara Jayalath <ch...@apache.org>
AuthorDate: Fri May 29 08:47:21 2020 -0700

    Enables proto holders for testing runner API. Without this x-lang can be broken for some execution paths where this property get enabled automatically. (#11854)
---
 sdks/python/apache_beam/pipeline.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sdks/python/apache_beam/pipeline.py b/sdks/python/apache_beam/pipeline.py
index d1380c6..9d1b02c 100644
--- a/sdks/python/apache_beam/pipeline.py
+++ b/sdks/python/apache_beam/pipeline.py
@@ -509,7 +509,8 @@ class Pipeline(object):
         return Pipeline.from_runner_api(
             self.to_runner_api(use_fake_coders=True),
             self.runner,
-            self._options).run(False)
+            self._options,
+            allow_proto_holders=True).run(False)
 
       if self._options.view_as(TypeOptions).runtime_type_check:
         from apache_beam.typehints import typecheck