-
Notifications
You must be signed in to change notification settings - Fork 594
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(DDL): drop schema cascade #6773
Comments
done by #11250 ? |
#11250 only supported drop cascade for relations including tables, mviews, views, indexes, sources and sinks, but not |
Required by dbt's basic tests. cc @chenzl25 |
How did you run these tests? I think dbt does not rely on this feature. BTW, risingwave current dropping mechanism is not easy to support this feature. We can delay this feature until it becomes urgent. |
closed #11250 |
@fuyufjh @yezizp2012 Could this issue be reopened? This would be a convenient way for dropping sandbox schemas created by dbt in a dev environment. It would also be a convenient way for cleaning up schemas if we choose to go with a blue/green deployment model at a schema level of granularity (similar to https://materialize.com/docs/manage/blue-green/ ). It is not urgent (yet) for me (not necessary for initial RW deployment at a small scale), but it would be nice if the issue can be reopened and tracked for development. |
Reopen that issue, but as @yezizp2012 said, some issues need to be resolved before we can support drop schema cascade. |
Another use case is for cleaning up in end-to-end tests. Say that we create a complex dependency topology between tables and materialized views, we can organize them within a schema and simply execute |
Another requirement: dbeaver/dbeaver#23001 (#15685)
+1 This can greatly simplify: risingwave/e2e_test/source/basic/kafka.slt Lines 827 to 918 in 532134e
I have used |
IIRC functions aren't namespaced yet (all functions are global) 🤡 #12422 |
All UDFs are already namespaced but search paths are ignored at binding step. 🥵 |
This feature is also required by atlasgo. ./atlas schema clean -u 'postgresql://root@localhost:4566/dev?sslmode=disable' It provides a |
any plans to support this anytime soon? This feature is needed in sqlmesh as well if we want to invalidate an environment crated by the developers. Sqlmesh command to do the invalidate will return success as risingwave is not considering it as an error. |
Since the dependency information of UDF is now resolved and managed, I will work on it this week. |
Is your feature request related to a problem? Please describe.
https://www.postgresql.org/docs/current/sql-dropschema.html
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: