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

Allow creating external tables with directories that don't exist #8277

Closed
alamb opened this issue Nov 20, 2023 · 0 comments · Fixed by #8014
Closed

Allow creating external tables with directories that don't exist #8277

alamb opened this issue Nov 20, 2023 · 0 comments · Fixed by #8014
Labels
enhancement New feature or request

Comments

@alamb
Copy link
Contributor

alamb commented Nov 20, 2023

Is your feature request related to a problem or challenge?

Right now, it is not possible to create an empty external table to write

❯ create external table foo stored as parquet location '/tmp/foo';
IO error: No such file or directory (os error 2)

Describe the solution you'd like

I would like to be able to create a new external table with a directory that doesn't exist and then have datafusion create the directory on first write

create external table foo(x int) stored as parquet location '/tmp/foo/';
insert into foo values (1);

And then have a file written into /tmp/foo/name.parquet

Describe alternatives you've considered

No response

Additional context

No response

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
1 participant