cloud-fan commented on a change in pull request #33413:
URL: https://github.com/apache/spark/pull/33413#discussion_r679647766
##########
File path:
external/avro/src/main/scala/org/apache/spark/sql/avro/AvroSerializer.scala
##########
@@ -179,6 +179,18 @@ private[sql] class AvroSerializer(
s"SQL type ${TimestampType.sql} cannot be converted to Avro
logical type $other")
}
+ case (TimestampNTZType, LONG) => avroType.getLogicalType match {
+ // For backward compatibility, if the Avro type is Long and it is not
logical type
Review comment:
ditto
--
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]