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

gurwls223 pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-3.1 by this push:
     new 21c7abc03a7 [SPARK-38892][SQL][TESTS] Fix a test case schema assertion 
of ParquetPartitionDiscoverySuite
21c7abc03a7 is described below

commit 21c7abc03a7bd29d60a435bcd3a850458fe8b518
Author: fhygh <283452...@qq.com>
AuthorDate: Fri Apr 15 20:42:18 2022 +0900

    [SPARK-38892][SQL][TESTS] Fix a test case schema assertion of 
ParquetPartitionDiscoverySuite
    
    ### What changes were proposed in this pull request?
    in ParquetPartitionDiscoverySuite, thare are some assert have no parctical 
significance.
    `assert(input.schema.sameType(input.schema))`
    
    ### Why are the changes needed?
    fix this to assert the actual result.
    
    ### Does this PR introduce _any_ user-facing change?
    no
    
    ### How was this patch tested?
    updated testsuites
    
    Closes #36189 from fhygh/assertutfix.
    
    Authored-by: fhygh <283452...@qq.com>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
    (cherry picked from commit 4835946de2ef71b176da5106e9b6c2706e182722)
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 .../execution/datasources/parquet/ParquetPartitionDiscoverySuite.scala  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetPartitionDiscoverySuite.scala
 
b/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetPartitionDiscoverySuite.scala
index 400f4d8e1b1..621165b3111 100644
--- 
a/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetPartitionDiscoverySuite.scala
+++ 
b/sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetPartitionDiscoverySuite.scala
@@ -1035,7 +1035,7 @@ abstract class ParquetPartitionDiscoverySuite
       val input = spark.read.parquet(path.getAbsolutePath).select("id",
         "date_month", "date_hour", "data")
 
-      assert(input.schema.sameType(input.schema))
+      assert(data.schema.sameType(input.schema))
       checkAnswer(input, data)
     }
   }


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

Reply via email to