Skip to content

[Bug]: Python schema generated types cannot be pickled #22714

@TheNeuralBit

Description

@TheNeuralBit

What happened?

The NamedTuple types we generate in apache_beam.typehints.schemas confound pickle libraries. We work around this in many places (e.g. GeneratedClassRowTypeConstraint #22679). We should see if we can find a way to make these types picklable, and clean up the workarounds.

Making the types work with cloudpickle should be the priority.

Issue Priority

Priority: 2

Issue Component

Component: sdk-py-core

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions