You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "ceppelli (via GitHub)" <gi...@apache.org> on 2024/05/10 15:16:12 UTC
[I] compatibility issue with AWS EMR 6.15.0 SPARK 3.4.1 [datafusion-comet]
ceppelli opened a new issue, #411:
URL: https://github.com/apache/datafusion-comet/issues/411
### Describe the bug
Compiling and running datafusion-comet for AWS EMR version emr-6.15.0 with Spark 3.4.1 won't work
# how to reproduce the issue
```
scala> (0 until 10).toDF("a").write.mode("overwrite").parquet("/tmp/test")
scala> spark.read.parquet("/tmp/test").createOrReplaceTempView("t1")
scala> spark.sql("select * from t1 where a > 5").show
scala.MatchError: 8 (of class java.lang.Integer)
at org.apache.comet.shims.ShimCometScanExec.$anonfun$newFileScanRDD$1(ShimCometScanExec.scala:73)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
```
# the cause of the problem
the file `spark-sql_2.12-3.4.1-amzn-2.jar` is a custom version of spark and contains the class `org.apache.spark.sql.execution.datasources.FileScanRDD` with 2 constructs, one with 6 parameters and the second with 8 parameters.
### Steps to reproduce
```
scala> (0 until 10).toDF("a").write.mode("overwrite").parquet("/tmp/test")
scala> spark.read.parquet("/tmp/test").createOrReplaceTempView("t1")
scala> spark.sql("select * from t1 where a > 5").show
scala.MatchError: 8 (of class java.lang.Integer)
at org.apache.comet.shims.ShimCometScanExec.$anonfun$newFileScanRDD$1(ShimCometScanExec.scala:73)
at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
```
### Expected behavior
_No response_
### Additional context
_No response_
--
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: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] compatibility issue with AWS EMR 6.15.0 SPARK 3.4.1 [datafusion-comet]
Posted by "viirya (via GitHub)" <gi...@apache.org>.
viirya closed issue #411: compatibility issue with AWS EMR 6.15.0 SPARK 3.4.1
URL: https://github.com/apache/datafusion-comet/issues/411
--
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: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org