Skip to content

Commit 795c276

Browse files
committed
fix avro error message
1 parent c4068ce commit 795c276

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,6 +984,8 @@ abstract class AvroSuite
984984
test("support user provided non-nullable avro schema " +
985985
"for nullable catalyst schema without any null record") {
986986
withTempPath { tempDir =>
987+
988+
987989
val catalystSchema =
988990
StructType(Seq(
989991
StructField("Age", IntegerType, true),
@@ -1015,7 +1017,7 @@ abstract class AvroSuite
10151017
.save(s"$tempDir/${UUID.randomUUID()}")
10161018
}.getCause.getMessage
10171019
assert(message.contains("Caused by: java.lang.NullPointerException: " +
1018-
"in test_schema in string null of string in field Name"))
1020+
"null of string in string in field Name of test_schema in test_schema"))
10191021
}
10201022
}
10211023

0 commit comments

Comments
 (0)