Anurag-S1ngh commented on PR #41334:
URL: https://github.com/apache/beam/pull/41334#issuecomment-7340028273

   I checked `convert_to_beam_type`. It normalizes the 
`Optional[RowTypeConstraint(...)]` wrapper but passes the `RowTypeConstraint` 
argument through unchanged, so the nested row's fields still hold raw typing 
annotations such as `Optional[str]`. That is why normalization runs when the 
field is resolved rather than when the schema is decoded.
   
   If you would rather keep this out of `opcodes.py`, I can move the call into 
`RowTypeConstraint.get_type_for()`. The only other caller is the YAML readme 
test, so the change is contained, and it puts the conversion on the type 
instead of the bytecode layer. Which placement do you prefer?


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