Is your feature request related to a problem or challenge?
Writing Avro files is currently not supported in DataFusion, such as via COPYor INSERT INTO queries. This would be a nice feature to have and recently came up in the discord channel.
Describe the solution you'd like
- Implement
create_write_physical_plan for AvroFormat
- Implement
FileSink on a AvroSink struct
- Implement file writing options / string parsing in
FileTypeWriterOptions for avro
I expect some of the common functions in https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/src/datasource/file_format/write.rs can be reused in the avro implementation.
Describe alternatives you've considered
Don't support writing avro files
Additional context
No response
Is your feature request related to a problem or challenge?
Writing Avro files is currently not supported in DataFusion, such as via
COPYorINSERT INTOqueries. This would be a nice feature to have and recently came up in the discord channel.Describe the solution you'd like
create_write_physical_planforAvroFormatFileSinkon aAvroSinkstructFileTypeWriterOptionsfor avroI expect some of the common functions in https://github.com/apache/arrow-datafusion/blob/main/datafusion/core/src/datasource/file_format/write.rs can be reused in the avro implementation.
Describe alternatives you've considered
Don't support writing avro files
Additional context
No response