apache / apache/beam

[Bug]: Python schema generated types cannot be pickled

Open
#22,714 4 comments 0 reactions 0 assignees View on GitHub
bug core P2 python types
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.