We find a problem that if you have a late binding view created from redshift cross database query. This view won’t show up in schema browser.
The problem is for redash, it use svv_columns to generate info in schema browser. But for the view above is not included in svv_columns. It could only be find in svv_tables.
In general, you could not find column detail on this kind of view.
Way to reproduce the PR:
- Redshift cluster have two db
devandstagingwith R class node ( this allows you to run cross db query) - Create a sample
table1indevas master user - Switch to
stagingdb. Create auser1and Create a late binding view inpublicwith query below:
* create view "test" as ( select * from dev.public.table1) with no schema binding;
* grant usage on schema public to user1;
* grant select on table test to user1;
- Log in
stagingdb asuser1, you are able to run query on the viewtest, but you won’t get any columns info fromsvv_columns.
Here is our pull request: Fix bug that redshift late binding views created from cross database query does not show up in schema browser by rzrz123 · Pull Request #5473 · getredash/redash · GitHub
