Skip to content

Commit

Permalink
[YAML] fix renaming provider caching and YAML schema validation (#29290)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Kinard <[email protected]>
  • Loading branch information
Polber authored Nov 3, 2023
1 parent 0e8e54c commit 058c947
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdks/python/apache_beam/yaml/pipeline.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ properties:
# These are the only top-level properties defined in pipeline.
- type: object
properties:
type: { const: chain }
type:
oneOf:
- { const: composite }
- { const: chain }
windowing:
$ref: '#/$defs/windowing'
transforms: {}
Expand Down
3 changes: 3 additions & 0 deletions sdks/python/apache_beam/yaml/yaml_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,9 @@ def _affinity(self, other):
def underlying_provider(self):
return self._underlying_provider.underlying_provider()

def cache_artifacts(self):
self._underlying_provider.cache_artifacts()


def parse_providers(provider_specs):
providers = collections.defaultdict(list)
Expand Down

0 comments on commit 058c947

Please sign in to comment.