diff --git a/src/frontend/src/catalog/root_catalog.rs b/src/frontend/src/catalog/root_catalog.rs index a2bbc9872f152..85c76927be773 100644 --- a/src/frontend/src/catalog/root_catalog.rs +++ b/src/frontend/src/catalog/root_catalog.rs @@ -676,7 +676,7 @@ impl Catalog { } /// This function is similar to `get_table_by_id` expect that a table must be in a given database. - pub fn get_table_by_id_with_db( + pub fn get_created_table_by_id_with_db( &self, db_name: &str, table_id: u32, diff --git a/src/frontend/src/catalog/schema_catalog.rs b/src/frontend/src/catalog/schema_catalog.rs index 444abbec344ad..61ec11e144dc4 100644 --- a/src/frontend/src/catalog/schema_catalog.rs +++ b/src/frontend/src/catalog/schema_catalog.rs @@ -560,7 +560,7 @@ impl SchemaCatalog { } /// Iterate all materialized views, excluding the indices. - pub fn iter_mv(&self) -> impl Iterator> { + pub fn iter_created_mvs(&self) -> impl Iterator> { self.table_by_name .iter() .filter(|(_, v)| v.is_mview() && valid_table_name(&v.name) && v.is_created()) diff --git a/src/frontend/src/catalog/system_catalog/rw_catalog/rw_materialized_views.rs b/src/frontend/src/catalog/system_catalog/rw_catalog/rw_materialized_views.rs index 16a1d7cf19d21..95b469debc2a0 100644 --- a/src/frontend/src/catalog/system_catalog/rw_catalog/rw_materialized_views.rs +++ b/src/frontend/src/catalog/system_catalog/rw_catalog/rw_materialized_views.rs @@ -44,7 +44,7 @@ fn read_rw_materialized_views(reader: &SysCatalogReaderImpl) -> Result Result Result catalog_reader .read_guard() .get_schema_by_name(session.database(), &schema_or_default(&schema))? - .iter_mv() + .iter_created_mvs() .map(|t| t.name.clone()) .collect(), ShowObject::Source { schema } => catalog_reader