How to convert a spark dataframe schema to an avro schema using pyspark

99 Views Asked by At

Is there a pyspark function which could convert below _schema variable to an `avro schema?

df_schema = spark.read.format('parquet').load(input_directory)
_schema = df_schema.schema
0

There are 0 best solutions below