Skip to content

Commit

Permalink
[yaml] Fix YAML join with upstream ReadFromPubSub (#33273)
Browse files Browse the repository at this point in the history
  • Loading branch information
Polber authored Dec 4, 2024
1 parent 2f788f6 commit 78bde63
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sdks/python/apache_beam/yaml/yaml_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ def _validate_equalities(equalities, pcolls):
error_prefix = f'Invalid value "{equalities}" for "equalities".'

valid_cols = {
name: set(dict(pcoll.element_type._fields).keys())
for name,
pcoll in pcolls.items()
name: set(
dict(fields).keys() if fields and all(
isinstance(field, tuple) for field in fields) else fields)
for (name, pcoll) in pcolls.items()
for fields in [getattr(pcoll.element_type, '_fields', [])]
}

if isinstance(equalities, str):
Expand Down

0 comments on commit 78bde63

Please sign in to comment.