-
Notifications
You must be signed in to change notification settings - Fork 752
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
feature: support logical view #4628
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/databend/databend/8MbMyK6Z7oqB7JDc4EyzfurXJsXC |
Thanks for the contribution! Please review the labels and make any necessary changes. |
Signed-off-by: Veeupup <code@tanweime.com>
Almost looks good to me, missing some stateless tests . |
ok, I'll write some stateless tests when alter is finished. |
Signed-off-by: Veeupup <code@tanweime.com>
Signed-off-by: Veeupup <code@tanweime.com>
need to add some docs for |
What will happen when a table depended by a view get dropped? |
it acts as Clickhouse, # in clickhouse
:) create view view_t1 as select a from t1;
:) drop table t1;
:) select * from view_t1;
SELECT *
FROM view_test
Query id: d3101f4a-2f80-4662-96aa-d3295172bc45
0 rows in set. Elapsed: 0.006 sec.
Received exception from server (version 21.12.1):
Code: 60. DB::Exception: Received from 0.0.0.0:9000. DB::Exception: Table default.t1 doesn't exist. (UNKNOWN_TABLE) # in databend
databend :) create view view_t1 as select * from t1;
databend :) drop table t1;
databend :) select * from view_t1;
SELECT *
FROM view_t1
Query id: 87fb4594-bd23-4c34-856f-f53f8e6a878b
....
0 rows in set. Elapsed: 0.012 sec.
Received exception from server (version 2021.5.0):
Code: 1025. DB::Exception: Received from 0.0.0.0:9000. DB:Exception. Unknown table 't1'. () |
If Users should recreate the view manually. |
Make sense. |
website/versioned_docs/version-0.7.0/03-reference/03-sql/01-ddl/06-view/_category_.yml
Outdated
Show resolved
Hide resolved
Signed-off-by: Veeupup <code@tanweime.com>
/LGTM now |
/LGTM |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
code base:
docs
test
Changelog
Related Issues
Fixes #4610
Test Plan
Unit Tests
Stateless Tests