Expand description
SQL-based view for log statistics aggregated by process, minute, level, and target
Functions§
- log_
stats_ ddl_ text - Assembles
log_stats_view_definition()’s equivalentCREATE MATERIALIZED VIEW log_stats WITH (...)DDL text, for the migration seed’sdefinition_sqlcolumn (kept for display and audit only – never re-parsed). Each query is wrapped in$$...$$; none of them contains a$$, so no quote-escaping helper is needed. - log_
stats_ view_ definition log_stats’s definition, expressed as aViewDefinition– the single source of truth shared by the migration seed (migration.rs’supgrade_v9_to_v10), the parser round-trip test, andmake_log_stats_viewbelow.log_statsis aSqlBatchViewwhose only distinction from a DDL-defined view is that its SQL lives in Rust rather than in alakehouse_view_set_definitionsrow – this function is what lets the migration seed that row.- make_
log_ stats_ view - Creates a new
SqlBatchViewfor log statistics aggregated by process, minute, level, and target –build_sql_batch_viewoverlog_stats_view_definition, solog_statsis built through the exact same path a DDL-defined view is.