Polber commented on PR #31427:
URL: https://github.com/apache/beam/pull/31427#issuecomment-2136274529
> It'd be good to add a test if it's not that hard.
@robertwb
Added a test.
Interestingly, if I remove the following from the test, it correctly
inferences the types...
```
elements.element_type = schemas.named_tuple_from_schema(
schema_pb2.Schema(
fields=[
schemas.schema_field('label', str),
schemas.schema_field('conductor', int),
schemas.schema_field('rank', int)
]))
```
i.e. if exactly what is done in the ReadFromPubSub
https://github.com/apache/beam/blob/df067dba5dc509135e857596224759e485d47a0b/sdks/python/apache_beam/yaml/yaml_io.py#L325-L326
--
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]