MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / has_columns

Method has_columns

src/catalog/src/memory/objects.rs:2665–2672  ·  view source on GitHub ↗

Reports if the item has columns.

(&self)

Source from the content-addressed store, hash-verified

2663
2664 /// Reports if the item has columns.
2665 pub fn has_columns(&self) -> bool {
2666 match self.item() {
2667 CatalogItem::Type(Type { details, .. }) => {
2668 matches!(details.typ, CatalogType::Record { .. })
2669 }
2670 _ => self.relation_desc_latest().is_some(),
2671 }
2672 }
2673
2674 /// Returns the [`mz_sql::func::Func`] associated with this `CatalogEntry`.
2675 pub fn func(&self) -> Result<&'static mz_sql::func::Func, SqlCatalogError> {

Callers 1

check_commentsMethod · 0.80

Calls 3

itemMethod · 0.80
is_someMethod · 0.80
relation_desc_latestMethod · 0.80

Tested by

no test coverage detected