[Bug]: Python schema generated types cannot be pickled
Open
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
Assessment
This issue has not been assessed yet.