-
Notifications
You must be signed in to change notification settings - Fork 727
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
fix: avoid dependency loop when selecting from view. #10650
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@mergify update |
✅ Branch has been successfully updated |
drop view if exists loop_view3; | ||
|
||
statement ok | ||
create view loop_view1 as select * from loop_view3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we check the loop when create view ?
postgres=# create view v_t as select * from v_t;
ERROR: relation "v_t" does not exist
LINE 1: create view v_t as select * from v_t;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid not in current implementation. Because when creating a view, we just store the SQL string.
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Check dependency when selecting from view.
Closes #10625