maropu commented on a change in pull request #28425:
URL: https://github.com/apache/spark/pull/28425#discussion_r418409102
##########
File path:
external/avro/src/main/scala/org/apache/spark/sql/v2/avro/AvroScan.scala
##########
@@ -65,4 +65,8 @@ case class AvroScan(
}
override def hashCode(): Int = super.hashCode()
+
+ override def getMetaData(): Map[String, String] = {
+ super.metaData ++ Map("Format" -> "avro")
Review comment:
Could we move all the `Format` metadata into the trait-side?
```
"Format" -> s"${this.getClass.getSimpleName.replace("Scan",
"").toLowerCase(Locale.ROOT)}"
```
----------------------------------------------------------------
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]