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

Make all read methods available on DataFusion module #918

Open
ion-elgreco opened this issue Oct 13, 2024 · 2 comments
Open

Make all read methods available on DataFusion module #918

ion-elgreco opened this issue Oct 13, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ion-elgreco
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Instead of having users explicitly create a sessioncontext, we could just create one when not passed.

Describe the solution you'd like
Expose read methods in datafusion so you do this:

import datafusion as fun   # :D 

df = fun.read_parquet("my.parquet)"

I am curious on other peoples thoughts on this.

@ion-elgreco ion-elgreco added the enhancement New feature or request label Oct 13, 2024
@timsaucer
Copy link
Contributor

I think this works well for testing of a single DF, but wouldn't this lead to creating multiple session contexts for every file you access?

@Michael-J-Ward
Copy link
Contributor

We could introduce a fn default_context() that also uses OnceLock similar to what we do for the TokioRuntime.

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