LuciferYang opened a new pull request #31259:
URL: https://github.com/apache/spark/pull/31259


   ### What changes were proposed in this pull request?
   Java UT failed when testing sql/hive module independently in Scala 2.13 now, 
 the error message as follow:
   
   ```
   [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
20.353 s <<< FAILURE! - in org.apache.spark.sql.hive.JavaDataFrameSuite
   [ERROR] org.apache.spark.sql.hive.JavaDataFrameSuite.testUDAF  Time elapsed: 
18.548 s  <<< ERROR!
   java.lang.NoClassDefFoundError: scala/collection/parallel/TaskSupport
        at 
org.apache.spark.sql.hive.JavaDataFrameSuite.checkAnswer(JavaDataFrameSuite.java:41)
        at 
org.apache.spark.sql.hive.JavaDataFrameSuite.testUDAF(JavaDataFrameSuite.java:92)
   Caused by: java.lang.ClassNotFoundException: 
scala.collection.parallel.TaskSupport
        at 
org.apache.spark.sql.hive.JavaDataFrameSuite.checkAnswer(JavaDataFrameSuite.java:41)
        at 
org.apache.spark.sql.hive.JavaDataFrameSuite.testUDAF(JavaDataFrameSuite.java:92)
   ```
   
   This pr add a Scala-2.13 profile with dependency of 
`scala-parallel-collections_` to `sql/hive` module to fix the Java UT in Scala 
2.13.
    
   ### Why are the changes needed?
   Recover the independent mvn test ability of sql/hive module in Scala 2.13.
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   
   - Pass the Jenkins or GitHub Action
   - Manual test
   
   ```
   mvn clean install -Dhadoop-3.2 -Phive-2.3 -Phadoop-cloud -Pmesos -Pyarn 
-Pkinesis-asl -Phive-thriftserver -Pspark-ganglia-lgpl -Pkubernetes -Phive 
-Pscala-2.13 -pl  sql/hive -am -DskipTests
   
   mvn test -Dhadoop-3.2 -Phive-2.3 -Phadoop-cloud -Pmesos -Pyarn -Pkinesis-asl 
-Phive-thriftserver -Pspark-ganglia-lgpl -Pkubernetes -Phive -Pscala-2.13 -pl  
sql/hive
   ```
   
   **Before**
   
   ```
   [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
20.353 s <<< FAILURE! - in org.apache.spark.sql.hive.JavaDataFrameSuite
   [ERROR] org.apache.spark.sql.hive.JavaDataFrameSuite.testUDAF  Time elapsed: 
18.548 s  <<< ERROR!
   java.lang.NoClassDefFoundError: scala/collection/parallel/TaskSupport
        at 
org.apache.spark.sql.hive.JavaDataFrameSuite.checkAnswer(JavaDataFrameSuite.java:41)
        at 
org.apache.spark.sql.hive.JavaDataFrameSuite.testUDAF(JavaDataFrameSuite.java:92)
   Caused by: java.lang.ClassNotFoundException: 
scala.collection.parallel.TaskSupport
        at 
org.apache.spark.sql.hive.JavaDataFrameSuite.checkAnswer(JavaDataFrameSuite.java:41)
        at 
org.apache.spark.sql.hive.JavaDataFrameSuite.testUDAF(JavaDataFrameSuite.java:92)
   ```
   
   **After**
   
   
   


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

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