You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "Polber (via GitHub)" <gi...@apache.org> on 2023/09/12 23:54:28 UTC

[GitHub] [beam] Polber commented on a diff in pull request #27804: [yaml] Add yaml_provider.py Unit Tests

Polber commented on code in PR #27804:
URL: https://github.com/apache/beam/pull/27804#discussion_r1323773002


##########
sdks/python/apache_beam/yaml/yaml_provider.py:
##########
@@ -429,7 +441,9 @@ def parse_schema(spec):
           ],
           id=str(uuid.uuid4()))
 
-    named_tuple = schemas.named_tuple_from_schema(parse_schema(args))
+    if 'schema' not in args.keys():
+      raise ValueError("WithSchema transform missing required 'schema' tag.")
+    named_tuple = schemas.named_tuple_from_schema(parse_schema(args['schema']))

Review Comment:
   @robertwb Should I remove this now that we have the `config` tag?



-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org