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 Copy with Remote Object Stores in datafusion-cli #8907

Closed
devinjdangelo opened this issue Jan 19, 2024 · 3 comments · Fixed by #9064
Closed

Support Copy with Remote Object Stores in datafusion-cli #8907

devinjdangelo opened this issue Jan 19, 2024 · 3 comments · Fixed by #9064
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@devinjdangelo
Copy link
Contributor

Is your feature request related to a problem or challenge?

This unfortunately does not work in datafusion-cli currently:

DataFusion CLI v34.0.0
❯ copy (values (1,2)) to 's3://dfcli-test-bucket/test3.parquet';
Internal error: No suitable object store found for s3://dfcli-test-bucket/.
This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker
❯ copy (values (1,2)) to 's3://dfcli-test-bucket2/test3.parquet';
Internal error: No suitable object store found for s3://dfcli-test-bucket2/.
This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker

But this does:

❯ create external table remote_table2(a int, b int) stored as parquet location 's3://dfcli-test-bucket2/';
0 rows in set. Query took 0.001 seconds.

❯ insert into remote_table2 values (1,2);
+-------+
| count |
+-------+
| 1     |
+-------+
1 row in set. Query took 0.272 seconds.

❯ select * from remote_table2;
+---+---+
| a | b |
+---+---+
| 1 | 2 |
+---+---+

Describe the solution you'd like

Support "on the fly" registration of remote object store for copy statements similar to create external table.

Describe alternatives you've considered

No response

Additional context

No response

@devinjdangelo devinjdangelo added the enhancement New feature or request label Jan 19, 2024
@alamb alamb added the good first issue Good for newcomers label Jan 19, 2024
@alamb
Copy link
Contributor

alamb commented Jan 19, 2024

I think the need is documented, so this is just a matter of debugging and connecting up the existing APIs. I think it is a good first issue

@manoj-inukolunu
Copy link
Contributor

Hello @alamb , can i give this a shot? Thank you.

@alamb
Copy link
Contributor

alamb commented Jan 21, 2024

Thanks @manoj-inukolunu !

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

Successfully merging a pull request may close this issue.

3 participants