You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by gu...@apache.org on 2022/04/15 11:43:40 UTC
[spark] branch branch-3.0 updated: [SPARK-38892][SQL][TESTS] Fix a test case schema assertion of ParquetPartitionDiscoverySuite
This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.0 by this push:
new 5f9020341b9 [SPARK-38892][SQL][TESTS] Fix a test case schema assertion of ParquetPartitionDiscoverySuite
5f9020341b9 is described below
commit 5f9020341b9a7a0c84541c889de4a5468266e9e7
Author: fhygh <28...@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 <28...@qq.com>
Signed-off-by: Hyukjin Kwon <gu...@apache.org>
(cherry picked from commit 4835946de2ef71b176da5106e9b6c2706e182722)
Signed-off-by: Hyukjin Kwon <gu...@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 32a9558e91f..49a1d40519b 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
@@ -1036,7 +1036,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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org