kevinjqliu opened a new issue, #1668:
URL: https://github.com/apache/iceberg-python/issues/1668

   ### Apache Iceberg version
   
   None
   
   ### Please describe the bug 🐞
   
   Opening this ticket so the error message becomes searchable. 
   
   Running integration tests (`make test-integration`) with Java 8 will show 
the following error:
   This is because integration tests are now running on Iceberg 1.8.0 (#1633) 
and Java 8 was deprecated in Iceberg 1.7.0 
(https://iceberg.apache.org/releases/#170-release)
   
   Use Java 11 and up.
   For example, `sdk use java 17.0.6-zulu`
   
   
   ```
   E                   py4j.protocol.Py4JJavaError: An error occurred while 
calling o65.table.
   E                   : java.lang.UnsupportedClassVersionError: 
org/apache/iceberg/spark/ExtendedParser has been compiled by a more recent 
version of the Java Runtime (class file version 55.0), this version of the Java 
Runtime only recognizes class file versions up to 52.0
   E                       at 
org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions.$anonfun$apply$1(IcebergSparkSessionExtensions.scala:35)
   E                       at 
org.apache.spark.sql.SparkSessionExtensions.$anonfun$buildParser$1(SparkSessionExtensions.scala:329)
   E                       at 
scala.collection.IndexedSeqOptimized.foldLeft(IndexedSeqOptimized.scala:60)
   E                       at 
scala.collection.IndexedSeqOptimized.foldLeft$(IndexedSeqOptimized.scala:68)
   E                       at 
scala.collection.mutable.ArrayBuffer.foldLeft(ArrayBuffer.scala:49)
   E                       at 
org.apache.spark.sql.SparkSessionExtensions.buildParser(SparkSessionExtensions.scala:328)
   E                       at 
org.apache.spark.sql.internal.BaseSessionStateBuilder.sqlParser$lzycompute(BaseSessionStateBuilder.scala:138)
   E                       at 
org.apache.spark.sql.internal.BaseSessionStateBuilder.sqlParser(BaseSessionStateBuilder.scala:137)
   E                       at 
org.apache.spark.sql.internal.BaseSessionStateBuilder.build(BaseSessionStateBuilder.scala:374)
   E                       at 
org.apache.spark.sql.SparkSession$.org$apache$spark$sql$SparkSession$$instantiateSessionState(SparkSession.scala:1319)
   E                       at 
org.apache.spark.sql.SparkSession.$anonfun$sessionState$2(SparkSession.scala:162)
   E                       at scala.Option.getOrElse(Option.scala:189)
   E                       at 
org.apache.spark.sql.SparkSession.sessionState$lzycompute(SparkSession.scala:160)
   E                       at 
org.apache.spark.sql.SparkSession.sessionState(SparkSession.scala:157)
   E                       at 
org.apache.spark.sql.DataFrameReader.<init>(DataFrameReader.scala:699)
   E                       at 
org.apache.spark.sql.SparkSession.read(SparkSession.scala:783)
   E                       at 
org.apache.spark.sql.SparkSession.table(SparkSession.scala:602)
   E                       at 
sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
   E                       at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   E                       at java.lang.reflect.Method.invoke(Method.java:498)
   E                       at 
py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
   E                       at 
py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:374)
   E                       at py4j.Gateway.invoke(Gateway.java:282)
   E                       at 
py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
   E                       at 
py4j.commands.CallCommand.execute(CallCommand.java:79)
   E                       at 
py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:182)
   E                       at 
py4j.ClientServerConnection.run(ClientServerConnection.java:106)
   E                       at java.lang.Thread.run(Thread.java:750)
   
   
../../Library/Caches/pypoetry/virtualenvs/pyiceberg-Is5Rt7Ah-py3.12/lib/python3.12/site-packages/py4j/protocol.py:326:
 Py4JJavaError
   ```
   
   ### Willingness to contribute
   
   - [ ] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


-- 
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: issues-unsubscr...@iceberg.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to