[ 
https://issues.apache.org/jira/browse/BEAM-14250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17517168#comment-17517168
 ] 

Robert Bradshaw commented on BEAM-14250:
----------------------------------------

A workaround is to define the types in any other module than __main__.

> 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: 10m
>  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.1#820001)

Reply via email to