Skip to content

Commit 00509d3

Browse files
committed
Removing unrelated changes
1 parent 83bf58b commit 00509d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/csv/CSVInferSchemaSuite.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ class CSVInferSchemaSuite extends SparkFunSuite with SQLHelper {
6868
}
6969

7070
test("Timestamp field types are inferred correctly via custom data format") {
71-
var options = new CSVOptions(Map("timestampFormat" -> "yyyy-MM"), false, "GMT")
71+
var options = new CSVOptions(Map("timestampFormat" -> "yyyy-mm"), false, "GMT")
7272
var inferSchema = new CSVInferSchema(options)
73+
7374
assert(inferSchema.inferField(TimestampType, "2015-08") == TimestampType)
7475

7576
options = new CSVOptions(Map("timestampFormat" -> "yyyy"), false, "GMT")
@@ -130,6 +131,7 @@ class CSVInferSchemaSuite extends SparkFunSuite with SQLHelper {
130131
test("Merging Nulltypes should yield Nulltype.") {
131132
val options = new CSVOptions(Map.empty[String, String], false, "GMT")
132133
val inferSchema = new CSVInferSchema(options)
134+
133135
val mergedNullTypes = inferSchema.mergeRowTypes(Array(NullType), Array(NullType))
134136
assert(mergedNullTypes.deep == Array(NullType).deep)
135137
}

0 commit comments

Comments
 (0)