Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support AVRO Format for Write Queries #7679

Open
devinjdangelo opened this issue Sep 28, 2023 · 2 comments
Open

Support AVRO Format for Write Queries #7679

devinjdangelo opened this issue Sep 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@devinjdangelo
Copy link
Contributor

devinjdangelo commented Sep 28, 2023

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

@devinjdangelo devinjdangelo added the enhancement New feature or request label Sep 28, 2023
@Veeupup
Copy link
Contributor

Veeupup commented Dec 4, 2023

@alamb Hi, I can help with this ticket : )

@alamb
Copy link
Contributor

alamb commented Dec 4, 2023

@alamb Hi, I can help with this ticket : )

Thanks @Veeupup -- for this one the first thing we need to do is get an avro writer and the second part is hooking it into DataFusion. There is some work upstream in arrow-rs to make an avro reader/writer in apache/arrow-rs#4886 but I think that project is stilled at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants