fn properties_view(infos: &[Info<'_>]) -> BuiltinViewExpand description
Build the mz_ontology_properties view: one row per column of every
annotated builtin relation.
The generated SQL works in two halves:
-
Column discovery — An inline VALUES list (
ent) maps each entity to its (schema, table) pair. This is joined throughmz_schemas→mz_objects→mz_columnsso the view always reflects the live catalog (column additions/removals are picked up automatically). -
Annotation enrichment — A second VALUES list (
ann) carries the semantic-type annotations fromOntology::column_semantic_types. Column descriptions come frommz_comments. Both are LEFT JOINed so columns without annotations or comments still appear (with NULLs).