This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 1f55a2af225 [SPARK-38928][TESTS][SQL] Skip Pandas UDF test in 
`QueryCompilationErrorsSuite` if not available
1f55a2af225 is described below

commit 1f55a2af225b9c6226004180d9b83d2424bbe154
Author: William Hyun <[email protected]>
AuthorDate: Sun Apr 17 19:29:16 2022 -0700

    [SPARK-38928][TESTS][SQL] Skip Pandas UDF test in 
`QueryCompilationErrorsSuite` if not available
    
    ### What changes were proposed in this pull request?
    This PR aims to skip Pandas UDF tests in `QueryCompilationErrorsSuite` if 
not available.
    
    ### Why are the changes needed?
    The tests should be skipped instead of showing failure.
    
    **BEFORE**
    ```
    $ build/sbt "sql/testOnly 
org.apache.spark.sql.errors.QueryCompilationErrorsSuite"
    ...
    [info] *** 2 TESTS FAILED ***
    [error] Failed tests:
    [error]         org.apache.spark.sql.errors.QueryCompilationErrorsSuite
    [error] (sql / Test / testOnly) sbt.TestsFailedException: Tests unsuccessful
    ```
    
    **AFTER**
    ```
    $ build/sbt "sql/testOnly 
org.apache.spark.sql.errors.QueryCompilationErrorsSuite"
    ...
    [info] Tests: succeeded 13, failed 0, canceled 2, ignored 0, pending 0
    [info] All tests passed.
    ```
    
    ### Does this PR introduce _any_ user-facing change?
    No.
    
    ### How was this patch tested?
    Pass the CIs.
    
    Closes #36236 from williamhyun/skippandas.
    
    Authored-by: William Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .../scala/org/apache/spark/sql/errors/QueryCompilationErrorsSuite.scala | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryCompilationErrorsSuite.scala
 
b/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryCompilationErrorsSuite.scala
index 9eb8f98ed55..0914f25f84d 100644
--- 
a/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryCompilationErrorsSuite.scala
+++ 
b/sql/core/src/test/scala/org/apache/spark/sql/errors/QueryCompilationErrorsSuite.scala
@@ -110,6 +110,7 @@ class QueryCompilationErrorsSuite extends QueryTest with 
SharedSparkSession {
 
   test("INVALID_PANDAS_UDF_PLACEMENT: Using aggregate function with grouped 
aggregate pandas UDF") {
     import IntegratedUDFTestUtils._
+    assume(shouldTestGroupedAggPandasUDFs)
 
     val df = Seq(
       (536361, "85123A", 2, 17850),
@@ -159,6 +160,7 @@ class QueryCompilationErrorsSuite extends QueryTest with 
SharedSparkSession {
 
   test("UNSUPPORTED_FEATURE: Using pandas UDF aggregate expression with 
pivot") {
     import IntegratedUDFTestUtils._
+    assume(shouldTestGroupedAggPandasUDFs)
 
     val df = Seq(
       (536361, "85123A", 2, 17850),


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

Reply via email to