[ https://issues.apache.org/jira/browse/BEAM-9574?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Hulette resolved BEAM-9574. --------------------------------- Fix Version/s: 2.21.0 Resolution: Fixed > NamedTuple instances generated from schemas cannot be pickled > ------------------------------------------------------------- > > Key: BEAM-9574 > URL: https://issues.apache.org/jira/browse/BEAM-9574 > Project: Beam > Issue Type: Bug > Components: sdk-py-core > Reporter: Brian Hulette > Assignee: Brian Hulette > Priority: Major > Fix For: 2.21.0 > > Time Spent: 50m > Remaining Estimate: 0h > > Attempting to pickle an instance of a generated NamedTuple class results in > the following: > {code} > _pickle.PicklingError: Can't pickle <class > 'apache_beam.typehints.schemas.BeamSchema_a7de91e0_ae11_4c52_a041_0b58ada35ac1'>: > attribute lookup BeamSchema_a7de91e0_ae11_4c52_a041_0b58ada35ac1 on > apache_beam.typehints.schemas failed > {code} > In general, we shouldn't be pickling these instances, but occasionally it may > be necessary, and we should just do it rather than failing hard. -- This message was sent by Atlassian Jira (v8.3.4#803005)