Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-48708][CORE] Remove three unnecessary type registrations from …
…`KryoSerializer` ### What changes were proposed in this pull request? This pr aims to remove three unnecessary type registrations from `KryoSerializer`, they include `None`, `Nil`, and `scala.collection.immutable.$colon$colon` . ### Why are the changes needed? The types that have been cleaned up are already registered in `ScalaKryoInstantiator`, so there is no need to register them again in Spark. https://github.com/twitter/chill/blame/0a34e50f742ab74598c81f153cfe8ad90bf3a859/chill-scala/src/main/scala/com/twitter/chill/ScalaKryoInstantiator.scala#L238-L241 ```scala None.getClass, // None classOf[Queue[_]], Nil.getClass, // Nil classOf[::[_]], // scala.collection.immutable.$colon$colon ``` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Exist test: "Bug: SPARK-10251" in `org.apache.spark.serializer.KryoSerializerSuite` ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#47080 from LuciferYang/clean-kryo-register. Authored-by: yangjie01 <[email protected]> Signed-off-by: Kent Yao <[email protected]>
- Loading branch information