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 registering views #1004

Open
matko opened this issue Jan 27, 2025 · 1 comment · May be fixed by #1016
Open

Support registering views #1004

matko opened this issue Jan 27, 2025 · 1 comment · May be fixed by #1016
Labels
enhancement New feature or request

Comments

@matko
Copy link

matko commented Jan 27, 2025

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
I am trying to create a view over a set of parquet files that I often need to query together in a particular way.
Datafusion supports views, essentially logical plans that are registered as a table (through ViewTable). Unfortunately, this functionality is not exposed in the python bindings.

Describe the solution you'd like
Expose ViewTable in the datafusion-python bindings, so that they can be created from a LogicalPlan and then registered with SessionContext.register_table.

Describe alternatives you've considered
There is also a DDL syntax for creating views. This works fine in many scenarios, but is less ideal in dynamic scenarios where it means having to compose a view as a string. This leads to all sorts of potential injection problems.

@matko matko added the enhancement New feature or request label Jan 27, 2025
@kosiew
Copy link
Contributor

kosiew commented Feb 6, 2025

take

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
2 participants