Abacn commented on issue #37862:
URL: https://github.com/apache/beam/issues/37862#issuecomment-4063759497

   The problem is this line:
   
   
https://github.com/apache/beam/blob/914e425b26daf26603bd5d0b5020b1c0ecd7a50c/sdks/python/apache_beam/typehints/schemas.py#L661
   
   the built-in zip **truncates** the longer list if two list aren't the same 
size.
   
   ```
   zip([('id', <class 'numpy.int64'>), ('name', <class 'str'>)], [('id', <class 
'numpy.int64'>)])
   >> ('id', 'id'), (<class 'numpy.int64'>, <class 'numpy.int64'>)
   ```
   
   causing union_schema_type returns a truncated schema, effectiving truncating 
fields.


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