databricks / spark-avro

Avro Data Source for Apache Spark
http://databricks.com/
Apache License 2.0
539 stars 310 forks source link

Getting schema name from Avro file #265

Open dmateusp opened 6 years ago

dmateusp commented 6 years ago

I want to get the schema name from an Avro file in the case that the schema is written in the header.

That information seems to be lost in the conversion from Schema -> StructType

My use case: