maropu commented on a change in pull request #29842:
URL: https://github.com/apache/spark/pull/29842#discussion_r495878125
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategySuite.scala
##########
@@ -529,37 +529,42 @@ class FileSourceStrategySuite extends QueryTest with
SharedSparkSession with Pre
}
test("SPARK-32019: Add spark.sql.files.minPartitionNum config") {
- withSQLConf(SQLConf.FILES_MIN_PARTITION_NUM.key -> "1") {
- val table =
- createTable(files = Seq(
- "file1" -> 1,
- "file2" -> 1,
- "file3" -> 1
- ))
- assert(table.rdd.partitions.length == 1)
- }
+ withSQLConf(
+ SQLConf.FILES_MAX_PARTITION_BYTES.key -> "2MB",
+ SQLConf.FILES_OPEN_COST_IN_BYTES.key -> String.valueOf(4 * 1024 * 1024))
{
+
+ withSQLConf(SQLConf.FILES_MIN_PARTITION_NUM.key -> "1") {
Review comment:
I think it is okay just to update the slow two tests only in this PR.
----------------------------------------------------------------
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]