ahmedabu98 commented on issue #36026:
URL: https://github.com/apache/beam/issues/36026#issuecomment-3245769214
Hmmm looks like Beam is unable to infer the PCollection schema from
`beam.Map(lambda x: Row(**x))` and is expecting you to explicitly define the
schema.
Can you try adding the following?
```python
from apache_beam.typehints.row_type import RowTypeConstraint
...
| "ToRow" >> beam.Map(lambda x:
Row(**x)).with_output_types(RowTypeConstraint.from_fields(
[('id', str),
('name', str),
('value', int)])
...
```
--
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]