You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Michael Charkin (Jira)" <ji...@apache.org> on 2022/03/30 20:19:00 UTC

[jira] [Updated] (BEAM-14212) Custom Coders are ignored sometimes

     [ https://issues.apache.org/jira/browse/BEAM-14212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Charkin updated BEAM-14212:
-----------------------------------
    Description: 
Custom coders are not used when an object is created inside a function that is passed in. It does work in lambdas, I am very confused.

 

Here is a gist to reproduce it

[https://gist.github.com/firemuzzy/d3ed68247a2c0841057fca9864d41fe4]

 

I don't think I have completely narrowed it down because having multiple files also seems to change things. Overall I can't reliably get Beam to pick up my custom coders, I am defining something wrong?

  was:
Custom coders are not used when an object is created inside a function that is passed in. It does work in lambdas, I am very confused.

 

Here is a gist to reproduce it

https://gist.github.com/firemuzzy/d3ed68247a2c0841057fca9864d41fe4


> Custom Coders are ignored sometimes
> -----------------------------------
>
>                 Key: BEAM-14212
>                 URL: https://issues.apache.org/jira/browse/BEAM-14212
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>    Affects Versions: 2.37.0
>         Environment: Python 3.8.12
>            Reporter: Michael Charkin
>            Priority: P2
>
> Custom coders are not used when an object is created inside a function that is passed in. It does work in lambdas, I am very confused.
>  
> Here is a gist to reproduce it
> [https://gist.github.com/firemuzzy/d3ed68247a2c0841057fca9864d41fe4]
>  
> I don't think I have completely narrowed it down because having multiple files also seems to change things. Overall I can't reliably get Beam to pick up my custom coders, I am defining something wrong?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)