Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix materialized_views filters when listing relations
Before the change, the `list_relations_without_caching` macro queried `system.metadata.materialized_views` with no effective filter on the catalog and schema name. In theory the Trino optimizer could figure out the effective predicate on the `system.metadata.materialized_views` table, but in practice it was not happening, and all materialized views from all catalogs where being pulled.
- Loading branch information