derrickaw commented on code in PR #35952: URL: https://github.com/apache/beam/pull/35952#discussion_r2301519313
########## sdks/python/apache_beam/yaml/yaml_transform.py: ########## @@ -522,6 +544,97 @@ def expand_leaf_transform(spec, scope): f'{type(outputs)}') +def expand_output_schema_transform(spec, outputs): + """ + Expands to add a Validate transform after the current transform and + before returning the output data for it to the next transform. + """ + # Check for error handling spec + error_handling_spec = {} + if 'error_handling' in spec: + error_handling_spec = spec.pop('error_handling') + + # Strip metadata such as __line__ and __uuid__ as these will interfere with + # the validation downstream. + clean_schema = SafeLineLoader.strip_metadata(spec) + + def enforce_schema(pcoll, label, error_handling_spec): Review Comment: no, updated, thanks! -- 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-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org