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 selecting from local files #152

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Sep 20, 2024

Draft:

Closes #125

Hooks up the DynamicCatalogFileProvoder and tests with it

@@ -15,18 +15,18 @@
// specific language governing permissions and limitations
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I renamed the tests from 'extensions' to 'execution' to better reflect it is testing execution in general rather than only extension execution

// session_ctx.enable_url_table();
// expecting that to work, but it didn't as the code returns a new session context
// instead of modifying the existing one
let session_ctx = session_ctx.enable_url_table();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the only change needed (it is a nice API thanks to @goldmedal)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is pretty awesome

@alamb
Copy link
Contributor Author

alamb commented Sep 20, 2024

This works pretty great -- but it is blocked on the delta.rs upgrade to datafusion 4.2

Comment on lines +77 to +81
// TODO file a ticket to make the API consuming!!
// I did like
// session_ctx.enable_url_table();
// expecting that to work, but it didn't as the code returns a new session context
// instead of modifying the existing one
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree that would be nicer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apache/datafusion#12551 tracking tickeet

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

Successfully merging this pull request may close these issues.

Implement select * from 'foo.parquet' support
2 participants