Skip to main content

Module list_view_set_definitions_table_function

Module list_view_set_definitions_table_function 

Source
Expand description

Admin UDTF listing DDL-defined view sets (straight from Postgres) and built-in ones list_view_set_definitions() – admin UDTF listing every view set: the rows of lakehouse_view_set_definitions read straight from Postgres (source = 'ddl'), plus the built-in view sets of the ViewFactory that have no such row (source = 'builtin'). Postgres rows are read directly rather than from ViewRegistry::current() so an admin can see a definition that exists on disk but failed to load. Built-in rows carry the update_group of their global view, which gives clients the materialization order. Registered inside the same admin-gated block as list_query_denials()’s siblings.

Structs§

DdlRow
A row of lakehouse_view_set_definitions.
DefinitionRow
A row of the list_view_set_definitions() output.
ListViewSetDefinitionsTableFunction
A DataFusion TableFunctionImpl for list_view_set_definitions().

Functions§

build_batch
Builds the output batch, keeping at most limit rows.
merge_rows
Unions the Postgres rows with the factory view sets they do not name, sorted by name. A Postgres row wins on a name collision, which covers a DDL set that is also in the factory and one that failed to load.