robertwb commented on code in PR #28289:
URL: https://github.com/apache/beam/pull/28289#discussion_r1329148697


##########
sdks/python/apache_beam/yaml/yaml_provider.py:
##########
@@ -138,8 +146,19 @@ def create_transform(self, type, args, 
yaml_create_transform):
       except Exception:
         # It's possible this service doesn't vend schema transforms.
         self._schema_transforms = {}
+    return self._schema_transforms
+
+  def requires_inputs(self, typ, args):
+    if self._urns[type] in self.schema_transforms():
+      return bool(self.schema_transforms()[self._urns[type]].inputs)

Review Comment:
   Yeah, it'd be nice to be able to query about the requirements of a 
configured transform before invoking it, but that's a larger change... Most 
(though not all) transforms have fixed inputs at least, so this'll cover those. 



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to