-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add CREATE VIEW
documentation to user guide
#3211
Comments
Hi, I could take on this issue! |
Thanks @madihabdul ! |
@madihabdul do you need some assistance with this issue? I'd be happy to help |
@kmitchener given there is no PR up if you don't hear from @madihabdul I would recommend just proceeding. Thank you for checking first. |
Hi. As this issue is not closed or proceed, I will suggest following explanation for it. Is it enough? CREATE VIEWView is a virtual table based on the result of a SQL query. It can be created from an existing table or values list CREATE VIEW view_name AS statement; CREATE TABLE users AS VALUES(1,2),(2,3),(3,4),(4,5);
CREATE VIEW test AS SELECT column1 FROM users;
SELECT * FROM test;
+---------+
| column1 |
+---------+
| 1 |
| 2 |
| 3 |
| 4 |
+---------+ CREATE VIEW test AS VALUES(1,2),(5,6);
SELECT * FROM test;
+---------+---------+
| column1 | column2 |
+---------+---------+
| 1 | 2 |
| 5 | 6 |
+---------+---------+ |
Thanks @retikulum -- your proposal looks great to me. We can always add some documentation and then expand upon it in future PRs |
I hope I will contribute datafusion more as I get used to codebase |
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
In docs/source/user-guide/sql/ddl.md we do not show that we support CREATE VIEW.
Describe the solution you'd like
Add docs
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: