-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 CREATE/DROP/ALTER VIEW (and associated DataFrame functions) #1740
Comments
🤔 since |
Im very interested in this as well, in particular just getting started with enabling @Igosuki did you have plans to work on this? |
I would love to but I am quite busy with other things these days (recently got knee surgery). So feel free to take ownership ! |
Sorry to hear - wishing you a speedy recovery! I hope to look into it soon. Will keep you posted. |
Create VIEW would be cool indeed -- I suggest adding it to the Catalog/Schema provider traits (as the view definitions logically belong there I think) |
@alamb noted - i will look into that. |
I have started work on |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Currently we can create external and in memory listing tables, I want to go further and allow creating views from SQL queries.
Registering a dataframe as a table requires the following :
Describe the solution you'd like
Since DataframeImpl is already a TableType::View, registering/droping/altering a view could be done from SQL, or directly with
ctx.create_view(df: Arc<dyn DataFrame>) or df.register_as_view(name: impl Into<TableReference>)
and
Describe alternatives you've considered
Leaving things as is
Additional context
Make it easier to use arrow-datafusion without knowing its internals.
The text was updated successfully, but these errors were encountered: