Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid pickling unstable reference to moved proto classes. (#23739)
CloudPickle notices that schema_pb2 (from the closure of the locally defined __reduce__ method) is not importable under its declared name (org.apache.beam...) and tries to pickle it (which fails due to proto classes themselves being unpicklable). This avoids that error by moving it out.
- Loading branch information