pub async fn default_view_factory(
runtime: Arc<RuntimeEnv>,
lake: Arc<DataLakeConnection>,
default_audience: Arc<str>,
) -> Result<ViewFactory, Error>Expand description
Creates the default ViewFactory with all built-in views.
default_audience is the deployment’s MICROMEGAS_DEFAULT_AUDIENCE, which the
blocks view binds when it materializes. Callers source it from
LakehouseContext::default_audience so every role that builds a factory bakes the same value
into partitions – notably the maintenance role, which is the one that actually materializes
the five global views. log_stats is no longer one of them: it is a seeded row in
lakehouse_view_set_definitions, folded in by ViewRegistry rather than by this function.