Github user zsxwing commented on the issue:
https://github.com/apache/spark/pull/19687
@ManchesterUnited16 `cleanUpReflectionObjects` introduces new closures but
those are created in `object ScalaReflection` so should be safe. Did you
backport my PR to an old Spark version?
If so, you probably hit https://github.com/apache/spark/pull/17639.
Anyway, I added some defensive codes in the test to make sure encoders are
serializable.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]