cona-bear commented on issue #36026:
URL: https://github.com/apache/beam/issues/36026#issuecomment-3248436103

   > 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?
   > 
   > 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)])
   > ...
   
   @ahmedabu98 Thanks for replying. Well, I'm actually looking for auto-detect 
schema feature which is in BigQuery I/O connector.. Is there any easier way 
that I can do without defining schema for managed I/O? basically, I'd like to 
remove "Map" in the code if possible.


-- 
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]

Reply via email to