Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Delta related jobs failed due to Spark version incompatibility #191

Closed
wjxiz1992 opened this issue Jun 15, 2024 · 0 comments · Fixed by #192
Closed

[BUG] Delta related jobs failed due to Spark version incompatibility #191

wjxiz1992 opened this issue Jun 15, 2024 · 0 comments · Fixed by #192
Assignees
Labels
bug Something isn't working

Comments

@wjxiz1992
Copy link
Collaborator

Describe the bug
This is almost identical to #189 . Delta also provides only-one-version support in one certain release jar.
When using incompatible Delta jar against Spark, the following error is thrown:

java.lang.IncompatibleClassChangeError: class org.apache.spark.sql.catalyst.plans.logical.DeltaDelete has interface org.apache.spark.sql.catalyst.plans.logical.UnaryNode as super class
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
  at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
  at org.apache.spark.sql.delta.DeltaAnalysis.apply(DeltaAnalysis.scala:64)
  at org.apache.spark.sql.delta.DeltaAnalysis.apply(DeltaAnalysis.scala:57)
  at org.apache.spark.sql.catalyst.rules.RuleExecutor.$anonfun$execute$2(RuleExecutor.scala:211)

Steps/Code to reproduce bug

  1. use Spark > 3.2.0
  2. launch spark-shell with incompatble Delta jar
spark-3.2.1-bin-hadoop3.2/bin/spark-shell --packages io.delta:delta-core_2.12:1.0.1 --conf spark.sql.extensions=io.delta.sql.DeltaSparkSessionExtension --conf spark.sql.catalog.spark_catalog=org.apache.spark.sql.delta.catalog.DeltaCatalog
  1. read arbitary file
spark.read.option("delimiter", "|").csv("../spark-rapids-benchmarks/origin_data_sf1/item")

Expected behavior
No error.

Environment details (please complete the following information)

  • Spark 3.2.1
  • --packages io.delta:delta-core_2.12:1.0.1
  • --conf spark.sql.extensions=io.delta.sql.DeltaSparkSessionExtension
  • --conf spark.sql.catalog.spark_catalog=org.apache.spark.sql.delta.catalog.DeltaCatalog

Solution
Use Delta jar version = 1.1.0 for Spark 3.2.x
Add More info in README to inform users.

@wjxiz1992 wjxiz1992 added bug Something isn't working ? - Needs Triage Need team to review and classify labels Jun 15, 2024
@wjxiz1992 wjxiz1992 self-assigned this Jun 15, 2024
@sameerz sameerz removed the ? - Needs Triage Need team to review and classify label Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants