Skip to content

Commit 8f2d69d

Browse files
committed
Fix tests
1 parent ddcfd90 commit 8f2d69d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sql/core/src/test/scala/org/apache/spark/sql/CsvFunctionsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class CsvFunctionsSuite extends QueryTest with SharedSQLContext {
6060
"mode" -> "Permissive", "columnNameOfCorruptRecord" -> columnNameOfCorruptRecord)))
6161

6262
checkAnswer(df2, Seq(
63-
Row(Row(null, null, "0,2013-111-11 12:13:14")),
63+
Row(Row(0, null, "0,2013-111-11 12:13:14")),
6464
Row(Row(1, java.sql.Date.valueOf("1983-08-04"), null))))
6565
}
6666

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/csv/CSVSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1116,7 +1116,7 @@ class CSVSuite extends QueryTest with SharedSQLContext with SQLTestUtils with Te
11161116
.schema(schema)
11171117
.csv(testFile(valueMalformedFile))
11181118
checkAnswer(df1,
1119-
Row(null, null) ::
1119+
Row(0, null) ::
11201120
Row(1, java.sql.Date.valueOf("1983-08-04")) ::
11211121
Nil)
11221122

@@ -1131,7 +1131,7 @@ class CSVSuite extends QueryTest with SharedSQLContext with SQLTestUtils with Te
11311131
.schema(schemaWithCorrField1)
11321132
.csv(testFile(valueMalformedFile))
11331133
checkAnswer(df2,
1134-
Row(null, null, "0,2013-111-11 12:13:14") ::
1134+
Row(0, null, "0,2013-111-11 12:13:14") ::
11351135
Row(1, java.sql.Date.valueOf("1983-08-04"), null) ::
11361136
Nil)
11371137

@@ -1148,7 +1148,7 @@ class CSVSuite extends QueryTest with SharedSQLContext with SQLTestUtils with Te
11481148
.schema(schemaWithCorrField2)
11491149
.csv(testFile(valueMalformedFile))
11501150
checkAnswer(df3,
1151-
Row(null, "0,2013-111-11 12:13:14", null) ::
1151+
Row(0, "0,2013-111-11 12:13:14", null) ::
11521152
Row(1, null, java.sql.Date.valueOf("1983-08-04")) ::
11531153
Nil)
11541154

0 commit comments

Comments
 (0)