title: Spark DataFrame: How to specify schema when writing as Avro
body: <p>I want to write a DataFrame in Avro format using a provided Avro schema rather than Spark's auto-generated schema. How can I tell Spark to use my custom schema on write?</p>