I have a job that currently uses spark sql to read from a postgres db, apply some transformations, and writes the output to avro. Spark-avro is the lib I use to have my job write output as avro and currently it does not support enum type when writing output as avro. Is there a way work around for this? For example, we have an Enum Type called Days and the value for it would be Days.Monday, Days.Tuesday, etc. Right now it writes the value of the day in string instead of enum. Please let me know if there is a work around for this.
... View more