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

Add example for writing a FileFormat #11079

Closed
Tracked by #7013
alamb opened this issue Jun 23, 2024 · 4 comments · Fixed by #11174
Closed
Tracked by #7013

Add example for writing a FileFormat #11079

alamb opened this issue Jun 23, 2024 · 4 comments · Fixed by #11174
Assignees
Labels
enhancement New feature or request

Comments

@alamb
Copy link
Contributor

alamb commented Jun 23, 2024

Is your feature request related to a problem or challenge?

Now that @devinjdangelo has added better support for user defined file formats (see #11060)

We have an example of a custom table provider: https://datafusion.apache.org/library-user-guide/custom-table-providers.html and example

It would be great to have an example of creating a file format

Such an example would make sure the APIs added in this PR can be used for the end to end case, as well as obviously made it easier for others to discover and use this feature

Describe the solution you'd like

Add an example in https://github.com/apache/datafusion/tree/main/datafusion-examples that does:

  1. Creates a new file format (something basic like use CSV / ROT13)
  2. reads / writes data using that format

Describe alternatives you've considered

No response

Additional context

No response

@tshauck
Copy link
Contributor

tshauck commented Jun 23, 2024

take

@tshauck
Copy link
Contributor

tshauck commented Jun 23, 2024

I'll take this as I want to try it out. I do this for one of my libraries via the parser plus user defined nodes, so I want to see what this looks like as an alternative.

@alamb
Copy link
Contributor Author

alamb commented Jun 23, 2024

I'll take this as I want to try it out. I do this for one of my libraries via the parser plus user defined nodes, so I want to see what this looks like as an alternative.

Thanks @tshauck -- note #11060 isn't merged yet, so you may have to start the example against that branch rather than main

@alamb
Copy link
Contributor Author

alamb commented Jun 28, 2024

#11060 is now merged 🎉

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

Successfully merging a pull request may close this issue.

2 participants