cloud-fan commented on a change in pull request #31333:
URL: https://github.com/apache/spark/pull/31333#discussion_r568620465
##########
File path:
external/avro/src/main/scala/org/apache/spark/sql/avro/AvroDeserializer.scala
##########
@@ -99,7 +105,13 @@ private[sql] class AvroDeserializer(
private def newWriter(
avroType: Schema,
catalystType: DataType,
- path: List[String]): (CatalystDataUpdater, Int, Any) => Unit =
+ avroPath: Seq[String],
+ sqlPath: Seq[String]): (CatalystDataUpdater, Int, Any) => Unit = {
+ val errorPrefix = s"Cannot convert Avro ${toFieldStr(avroPath)} to " +
+ s"Catalyst ${toFieldStr(sqlPath)} because "
+ val incompatibleMsg = errorPrefix +
+ s"schema is incompatible (avroType = $avroType, sqlType =
$catalystType)"
Review comment:
ditto, call `.sql` for the catalyst type
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]