mreiche opened a new issue, #46054:
URL: https://github.com/apache/superset/issues/46054

   ### Bug description
   
   1. Create a MATERIALIZED VIEW
   2. Refresh schema
   3. Materialized View won't show up in schema
   4. Test if schema exists
   
   ```sql
   SELECT
       n.nspname AS schema_name,
       c.relname AS relation_name,
       c.relkind
   FROM pg_class c
   JOIN pg_namespace n ON n.oid = c.relnamespace
   WHERE c.relkind in ('v', 'm');
   ```
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.11
   
   ### Node version
   
   I don't know
   
   ### Browser
   
   Firefox
   
   ### Additional context
   
   I'm running superset from almost latest 7.0.0-lean.
   
   AI suggest to implement the materialized view interface like:
   
   ```python
   @classmethod
   def get_materialized_view_names(
       cls,
       database: Database,
       inspector: Inspector,
       schema: str | None,
   ) -> set[str]:
       if not schema:
           return set()
   
       return set(inspector.get_materialized_view_names(schema))
   ```
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to