This is an automated email from the ASF dual-hosted git repository.
gurwls223 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 4835946de2e [SPARK-38892][SQL][TESTS] Fix a test case schema assertion
of ParquetPartitionDiscoverySuite
4835946de2e is described below
commit 4835946de2ef71b176da5106e9b6c2706e182722
Author: fhygh <[email protected]>
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 <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
.../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 6c5f0925f5a..b5947a4f820 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
@@ -1076,7 +1076,7 @@ abstract class ParquetPartitionDiscoverySuite
val input = spark.read.parquet(path.getAbsolutePath).select("id",
"date_month", "date_hour", "date_t_hour", "data")
- assert(input.schema.sameType(input.schema))
+ assert(data.schema.sameType(input.schema))
checkAnswer(input, data)
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]