We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 351d4ba commit b9e9a84Copy full SHA for b9e9a84
1 file changed
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala
@@ -305,10 +305,10 @@ class CSVSuite extends QueryTest with SharedSQLContext with SQLTestUtils {
305
test("test with empty file and known schema") {
306
val result = spark.read
307
.format("csv")
308
- .schema(StructType(List(StructField("column", StringType, nullable = false))))
+ .schema(StructType(List(StructField("column", StringType, false))))
309
.load(testFile(emptyFile))
310
311
- assert(result.collect().isEmpty)
+ assert(result.collect.size === 0)
312
assert(result.schema.fieldNames.size === 1)
313
}
314
0 commit comments