xkrogen commented on a change in pull request #33308:
URL: https://github.com/apache/spark/pull/33308#discussion_r674208555
##########
File path:
external/avro/src/test/scala/org/apache/spark/sql/avro/AvroSuite.scala
##########
@@ -1403,7 +1403,8 @@ abstract class AvroSuite
df.write.option("avroSchema",
avroSchema).format("avro").save(s"$tempDir/save2")
}
assertExceptionMsg[IncompatibleSchemaException](e,
- "Cannot find field 'FOO' (at position 0) in Avro schema at top-level
record")
+ "Cannot find SQL field(s) in Avro top-level record: " +
Review comment:
Ok, makes sense. I also agree that trying to phrase it properly when
reporting multiple errors was more challenging. I think it's a tradeoff between
more information vs. understandability of that information, and I'm find with
going for better understandability. Updated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]