Skip to content

Commit cc1d472

Browse files
committed
Make the schema wider.
1 parent 12bacae commit cc1d472

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/MetastoreDataSourcesSuite.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,8 @@ class MetastoreDataSourcesSuite extends QueryTest with BeforeAndAfterEach {
593593
}
594594

595595
test("SPARK-6024 wide schema support") {
596-
val schema = StructType((1 to 1000).map(i => StructField(s"c_${i}", StringType, true)))
596+
// We will need 80 splits for this schema if the threshold is 4000.
597+
val schema = StructType((1 to 5000).map(i => StructField(s"c_${i}", StringType, true)))
597598
assert(
598599
schema.json.size > conf.schemaStringLengthThreshold,
599600
"To correctly test the fix of SPARK-6024, the value of " +

0 commit comments

Comments
 (0)