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

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

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

Kenneth Knowles commented on BEAM-14212:
----------------------------------------

[~tvalentyn] do you know how this works in Python? In Java, custom coders are only used when something is an element of a PCollection, and they do not affect objects serialized in a closure.

> 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.7#820007)