databricks/spark-avro

Getting schema name from Avro file

dmateusp opened this issue · 0 comments

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:

  • I want to insert my Avro data in different Data Warehouse tables depending on the Avro schema name