Brian Hulette created BEAM-9574:
-----------------------------------

             Summary: 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


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_0b58ada35ac
1 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)

Reply via email to