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

Danny McCormick edited comment on BEAM-527 at 6/3/22 3:25 PM:
--------------------------------------------------------------

This issue has been migrated to [https://github.com/apache/beam/issues/17883]


was (Author: JIRAUSER282469):
This isn't actually real, but this issue has been migrated to 
https://github.com/apache/beam/issues/17883

> Pickling error when pickling a nested function 
> -----------------------------------------------
>
>                 Key: BEAM-527
>                 URL: https://issues.apache.org/jira/browse/BEAM-527
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-py-core
>            Reporter: Ahmet Altay
>            Priority: P3
>
> There is a pickling error under the following conditions all happen:
> - a function is defined inside a transforms' apply method
> - then using it as MapFn
> - that function references an instance variable of the outer transform.
> Rewriting the nested function as an unnested DoFn appears to solve the 
> problem.
> If the limitations of pickling make it difficult to support nested functions 
> then perhaps there's a way to make it easier for users to detect problems 
> caused by nested functions and recommend appropriate fixes



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to