iceberg: `iceberg-spark-runtime-3.3_2.12-1.5.1` seems to be compiled with a mismatched scala version
Apache Iceberg version
1.5.1 (latest release)
Query engine
Spark
Please describe the bug 🐞
As commented in https://github.com/apache/kyuubi/pull/6349#issuecomment-2082258210, iceberg-spark-runtime-3.3_2.12-1.5.1 seems to be compiled with a mismatched scala version.
I decompiled the org.apache.spark.sql.catalyst.plans.logical.DeleteFromIcebergTable class in iceberg-spark-runtime-3.3_2.12-1.5.1.jar and found that it contains scala/collection/SeqOps class of scala 2.13.X.
Command:
javap -cp ./iceberg-spark-runtime-3.3_2.12-1.5.1.jar -v org.apache.spark.sql.catalyst.plans.logical.DeleteFromIcebergTable | grep 'scala/collection/SeqOps'
Result:
$ javap -cp ./iceberg-spark-runtime-3.3_2.12-1.5.1.jar -v org.apache.spark.sql.catalyst.plans.logical.DeleteFromIcebergTable | grep 'scala/collection/SeqOps'
#221 = Utf8 (Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
#222 = NameAndType #220:#221 // unapplySeq:(Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
#223 = Methodref #219.#222 // scala/collection/immutable/Seq$.unapplySeq:(Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
#228 = Utf8 (Lscala/collection/SeqOps;)Z
#229 = NameAndType #227:#228 // isEmpty$extension:(Lscala/collection/SeqOps;)Z
#230 = Methodref #29.#229 // scala/collection/SeqFactory$UnapplySeqWrapper$.isEmpty$extension:(Lscala/collection/SeqOps;)Z
#232 = NameAndType #231:#221 // get$extension:(Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
#233 = Methodref #29.#232 // scala/collection/SeqFactory$UnapplySeqWrapper$.get$extension:(Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
#234 = Utf8 (Lscala/collection/SeqOps;)V
#235 = NameAndType #141:#234 // "<init>":(Lscala/collection/SeqOps;)V
#236 = Methodref #24.#235 // scala/collection/SeqFactory$UnapplySeqWrapper."<init>":(Lscala/collection/SeqOps;)V
#238 = Utf8 (Lscala/collection/SeqOps;I)I
#239 = NameAndType #237:#238 // lengthCompare$extension:(Lscala/collection/SeqOps;I)I
#240 = Methodref #29.#239 // scala/collection/SeqFactory$UnapplySeqWrapper$.lengthCompare$extension:(Lscala/collection/SeqOps;I)I
#242 = Utf8 (Lscala/collection/SeqOps;I)Ljava/lang/Object;
#243 = NameAndType #241:#242 // apply$extension:(Lscala/collection/SeqOps;I)Ljava/lang/Object;
#244 = Methodref #29.#243 // scala/collection/SeqFactory$UnapplySeqWrapper$.apply$extension:(Lscala/collection/SeqOps;I)Ljava/lang/Object;
#250 = Utf8 scala/collection/SeqOps
#251 = Class #250 // scala/collection/SeqOps
92: invokevirtual #223 // Method scala/collection/immutable/Seq$.unapplySeq:(Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
102: invokevirtual #230 // Method scala/collection/SeqFactory$UnapplySeqWrapper$.isEmpty$extension:(Lscala/collection/SeqOps;)Z
117: invokevirtual #233 // Method scala/collection/SeqFactory$UnapplySeqWrapper$.get$extension:(Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
120: invokespecial #236 // Method scala/collection/SeqFactory$UnapplySeqWrapper."<init>":(Lscala/collection/SeqOps;)V
134: invokevirtual #233 // Method scala/collection/SeqFactory$UnapplySeqWrapper$.get$extension:(Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
138: invokevirtual #240 // Method scala/collection/SeqFactory$UnapplySeqWrapper$.lengthCompare$extension:(Lscala/collection/SeqOps;I)I
153: invokevirtual #233 // Method scala/collection/SeqFactory$UnapplySeqWrapper$.get$extension:(Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
157: invokevirtual #244 // Method scala/collection/SeqFactory$UnapplySeqWrapper$.apply$extension:(Lscala/collection/SeqOps;I)Ljava/lang/Object;
173: invokevirtual #233 // Method scala/collection/SeqFactory$UnapplySeqWrapper$.get$extension:(Lscala/collection/SeqOps;)Lscala/collection/SeqOps;
177: invokevirtual #244 // Method scala/collection/SeqFactory$UnapplySeqWrapper$.apply$extension:(Lscala/collection/SeqOps;I)Ljava/lang/Object;
locals = [ class org/apache/spark/sql/catalyst/plans/logical/DeleteFromIcebergTable, class scala/collection/immutable/IndexedSeq, top, top, top, top, top, class scala/collection/immutable/IndexedSeq, class scala/collection/SeqOps ]
locals = [ class org/apache/spark/sql/catalyst/plans/logical/DeleteFromIcebergTable, class scala/collection/immutable/IndexedSeq, top, top, top, top, top, class scala/collection/immutable/IndexedSeq, class scala/collection/SeqOps, class org/apache/spark/sql/catalyst/plans/logical/LogicalPlan, class org/apache/spark/sql/catalyst/plans/logical/LogicalPlan ]
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (16 by maintainers)
@wForget, @kapkiai, @pan3793 : Feel free to test the Iceberg 1.5.2 staged artifacts
I just tested with Nessie and it can work fine now (https://github.com/projectnessie/nessie/pull/8444)
Followup of @wForget comments: Kyuubi’s CI covers Iceberg
Maven Central does not allow overwriting artifacts, consider starting the next release soon?
Kyuubi CI with iceberg 1.5.2 RC0 also works fine. https://github.com/apache/kyuubi/pull/6361
It’s a strange mix of artifacts that are incorrect.
These are the ones I’ve that I’ve seen so far that are incorrect: 1.) Spark3.5+Scala2.13 (Seems to have used 2.12 during build) 2.) Spark3.3+Scala2.12 (Seems to have used 2.13 during build?)
The ones that are OK from my testing so far: 1.) Spark3.5 + Scala 2.12 2.) Spark3.4 + Scala 2.12