linliu-code commented on code in PR #17601:
URL: https://github.com/apache/hudi/pull/17601#discussion_r2738836321
##########
hudi-client/hudi-spark-client/src/main/scala/org/apache/spark/HoodieSparkKryoRegistrar.scala:
##########
@@ -93,6 +93,8 @@ object HoodieSparkKryoRegistrar {
private val KRYO_USER_REGISTRATORS = "spark.kryo.registrator"
def register(conf: SparkConf): SparkConf = {
- conf.set(KRYO_USER_REGISTRATORS,
Seq(classOf[HoodieSparkKryoRegistrar].getName).mkString(","))
+ // Use class name directly to avoid Scala collection binary compatibility
issues
+ // when compiled with Scala 2.13 but running with Spark 3.5 (Scala 2.12)
+ conf.set(KRYO_USER_REGISTRATORS, classOf[HoodieSparkKryoRegistrar].getName)
Review Comment:
We do have run scala 2.13 in the GH CI.
<img width="827" height="114" alt="image"
src="https://github.com/user-attachments/assets/d273d442-bbae-49a5-93fe-607c9106420c"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]