You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Robert Bradshaw (Jira)" <ji...@apache.org> on 2022/04/05 00:38:00 UTC

[jira] [Commented] (BEAM-14250) Coder registration doesn't work for types in main module.

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