You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "EnricoMi (via GitHub)" <gi...@apache.org> on 2023/10/12 12:42:44 UTC

Re: [PR] [SPARK-44751][SQL][FOLLOWUP] Change `xmlExpressions.scala` package name [spark]

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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org