Open xiangjinwu opened 1 month ago
The complexity increases when a catalog is created with search_path
set to specific schemas. Since we don't rewrite and persist the schema in the definition, renaming them leads to more inconsistencies. Therefore, it's necessary to also persist the schemas. I will try to fix it.
Another related issue is select * from table
. The table catalogs (columns) might be changed after alter table
, so it's better to expand the *
to actual columns when exeucuting create mv
.
Describe the bug
The current definition accidentally updates all schemas. See reproduction steps for details. https://github.com/risingwavelabs/risingwave/blob/3c57ef8dd5d26f6eaedf42c169309a0751bcf5e6/src/meta/src/controller/rename.rs#L141-L144
Error message/log
To Reproduce
Expected behavior
b.foo
referenced bymv
shall remain unchanged:How did you deploy RisingWave?
No response
The version of RisingWave
No response
Additional context
May not be that common in practice.