Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
minimise the change
  • Loading branch information
HyukjinKwon committed Nov 4, 2016
commit e1c58c1f5b2885578defa2fd978836c36e6bab73
Original file line number Diff line number Diff line change
Expand Up @@ -893,11 +893,10 @@ class CSVSuite extends QueryTest with SharedSQLContext with SQLTestUtils {

test("load null when the schema is larger than parsed tokens ") {
withTempPath { path =>
val schema = StructType(Array(
StructField("a", IntegerType, nullable = true),
StructField("b", IntegerType, nullable = true)
))
Seq("1").toDF().write.text(path.getAbsolutePath)
val schema = StructType(
StructField("a", IntegerType, true) ::
StructField("b", IntegerType, true) :: Nil)
val df = spark.read
.schema(schema)
.option("header", "false")
Expand Down