EnricoMi commented on PR #43102:
URL: https://github.com/apache/spark/pull/43102#issuecomment-1759541718

   This is strange, calling into any SQL function in 
org.apache.spark.sql.functions fails for latest 4.0.0-SNAPSHOT
   
   ```
   sum($"id")
   
   java.lang.NoClassDefFoundError: 
org/apache/spark/sql/catalyst/expressions/xml/XmlToStructs
   
   Cause: java.lang.ClassNotFoundException: 
org.apache.spark.sql.catalyst.expressions.xml.XmlToStructs
     at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
     at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
     at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
   ```
   
   This works perfectly fine from the spark-shell but not from a Scala 
application that depends on the Spark SNAPSHOT jars.
   
   I have no idea why `XmlToStructs` is being looked for in 
`org.apache.spark.sql.catalyst.expressions.xml`.
   
   I have removed all caching of SNAPSHOT jars.
   
   I have last seen this working on Sep 27th: 
https://github.com/G-Research/spark-extension/actions/runs/6330717992/job/17193860638
   and first failing on Oct, 10th: 
https://github.com/G-Research/spark-extension/actions/runs/6419624422/job/17556921640#step:3:4482


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to