Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10980

Pickling Generated NamedTuple instances drops custom members

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sdk-py-core
    • Labels:
      None

      Description

      We assign a custom _reduce_ method and a _beam_schema_id member to generated NamedTuple instances, but these methods are dropped when the constructor is pickled and unpickled (as might happen when used in a closure with beam.Map or beam.FlatMap)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bhulette Brian Hulette
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: