[
https://issues.apache.org/jira/browse/BEAM-14250?focusedWorklogId=765219&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-765219
]
ASF GitHub Bot logged work on BEAM-14250:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 02/May/22 23:51
Start Date: 02/May/22 23:51
Worklog Time Spent: 10m
Work Description: KevinGG commented on PR #17278:
URL: https://github.com/apache/beam/pull/17278#issuecomment-1115475473
This seems to have broken the `RowCoder.from_type_hint`.
So for `SqlTransform` with `NamedTuple` defined in the `main` module, the
below code will fail because `schema_from_element_type` does not know how to
handle a `str` type hint:
```
beam.coders.registry.register_coder(NamedTupleInMain, beam.coders.RowCoder)
coder = beam.coders.registry.get_coder(NamedTupleInMain)
```
I'll see if I can send an amendment to it.
Issue Time Tracking
-------------------
Worklog Id: (was: 765219)
Time Spent: 1h (was: 50m)
> Coder registration doesn't work for types in main module.
> ---------------------------------------------------------
>
> Key: BEAM-14250
> URL: https://issues.apache.org/jira/browse/BEAM-14250
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Robert Bradshaw
> Assignee: Robert Bradshaw
> Priority: P2
> Time Spent: 1h
> Remaining Estimate: 0h
>
> This is because type equality is not preserved through pickling. (Similarly
> for any other dynamic types that can't be pickled by reference.)
--
This message was sent by Atlassian Jira
(v8.20.7#820007)