micromegas_analytics/lakehouse/mod.rs
1/// Record batches + schema
2pub mod answer;
3/// Implementation of `BlockProcessor` for async events
4pub mod async_events_block_processor;
5/// Materializable view of async span events accessible through datafusion
6pub mod async_events_view;
7/// Write parquet in object store
8pub mod async_parquet_writer;
9/// The call-level guard: per-id audience
10/// resolution (`AudienceIndex`) and the fail-closed guard (`AudienceGuard`) for the
11/// span/metadata UDTFs and `get_payload` UDF `OwnershipRewrite` (the row-level filter) structurally cannot
12/// reach, plus a scan-time guard on `view_instance(...)`. For the six view sets carrying a
13/// physical `audience` column, the row-level filter *can* and does reach a `view_instance` scan too,
14/// row-filtering it the same as the named-table form -- there `view_instance` joined the call-level guard to
15/// close a cost/availability residual (stopping JIT materialization for a foreign-audience
16/// instance), not because the row-level filter can't filter it. For the other five view sets, reachable only
17/// through a guarded `view_instance(...)`, the row-level filter injects no predicate at all, so this guard is
18/// their sole enforcement.
19pub mod audience_guard;
20/// Materialize views on a schedule based on the time data was received from the ingestion service
21pub mod batch_update;
22/// Format → decoder registry for `parse_block`, mirroring `BlockProcessorMap`
23pub mod block_object_decoder;
24/// Specification for a view partition backed by a set of telemetry blocks which can be processed out of order
25pub mod block_partition_spec;
26/// Replicated view of the `blocks` table of the postgresql metadata database.
27pub mod blocks_view;
28/// Catalog utilities for discovering and managing view schemas
29pub mod catalog;
30/// Admin UDTF that plans a view definition's merge and reports whether it streams
31pub mod check_view_merge_table_function;
32pub mod dataframe_time_bounds;
33/// Admin-managed DataFusion session config overrides
34pub mod datafusion_config;
35/// Admin UDTF that validates and inserts a query-deny-list rule
36pub mod deny_queries_table_function;
37/// Export mechanism that doubles as audit trail
38pub mod export_log_view;
39/// Fetch payload from the object store using SQL
40pub mod get_payload_function;
41/// Implementation of `BlockProcessor` for images
42pub mod image_block_processor;
43/// Materializable view of images accessible through datafusion
44pub mod images_view;
45/// Management of process-specific partitions built on demand
46pub mod jit_partitions;
47/// On-demand promotion of fine JIT partitions into coarser ones
48pub mod jit_promotion;
49/// Bundles runtime resources for lakehouse query execution
50pub mod lakehouse_context;
51/// Caller-scoped UDTF listing rows of the `audience_grants` table
52pub mod list_audience_grants_table_function;
53/// Read access to the list of lakehouse partitions
54pub mod list_partitions_table_function;
55/// Admin UDTF listing every query-deny-list rule currently in force
56pub mod list_query_denials_table_function;
57/// Admin UDTF listing DDL-defined view sets (straight from Postgres) and built-in ones
58pub mod list_view_set_definitions_table_function;
59/// Read access to view sets with their schema information
60pub mod list_view_sets_table_function;
61/// Implementation of `BlockProcessor` for log entries
62pub mod log_block_processor;
63/// SQL-based view for log statistics aggregated by process, minute, level, and target
64pub mod log_stats_view;
65/// Materializable view of log entries accessible through datafusion
66pub mod log_view;
67/// Exposes materialize_partitions as a table function
68pub mod materialize_partitions_table_function;
69/// TableProvider implementation for the lakehouse
70pub mod materialized_view;
71/// Merge consecutive parquet partitions into a single file
72pub mod merge;
73/// Global LRU cache for partition metadata
74pub mod metadata_cache;
75/// Specification for a view partition backed by a table in the postgresql metadata database.
76pub mod metadata_partition_spec;
77/// Implementation of `BlockProcessor` for measures
78pub mod metrics_block_processor;
79/// Materializable view of measures accessible through datafusion
80pub mod metrics_view;
81/// Maintenance of the postgresql tables and indices use to track the parquet files used to implement the views
82pub mod migration;
83/// Jit view of pre-paired network bandwidth spans (Connection / Object / Property / RPC)
84pub mod net_spans_view;
85/// Query-driven materialization of on-demand SQL views
86pub mod on_demand_jit;
87/// OTLP reader path: attribute helpers, block processors, and the otel_spans and otel_histograms views.
88pub mod otel;
89/// The row-level filter: injects an audience predicate into every
90/// `MaterializedView` scan based on the caller's `ReadScope`.
91pub mod ownership_rewrite;
92/// Table function to parse all transit objects in a block and return them as JSONB
93pub mod parse_block_table_function;
94/// Write & delete sections of views
95pub mod partition;
96/// In-memory copy of a subnet of the list of the partitions in the db
97pub mod partition_cache;
98/// Aligned bucket ladder and planner sizing JIT partitions from the query range
99pub mod partition_ladder;
100/// Reads and parses partition Parquet footers directly from object storage
101pub mod partition_metadata;
102/// Describes the event blocks backing a partition
103pub mod partition_source_data;
104/// ExecutionPlan based on a set of parquet files
105pub mod partitioned_execution_plan;
106/// TableProvider based on a set of parquet files
107pub mod partitioned_table_provider;
108/// ExecutionPlan for generating Perfetto trace chunks
109pub mod perfetto_trace_execution_plan;
110/// Table function for generating Perfetto trace chunks
111pub mod perfetto_trace_table_function;
112/// Table function returning thread and/or async spans from all CPU streams of a process
113pub mod process_spans_table_function;
114/// Shared utilities for discovering CPU streams of a process
115pub mod process_streams;
116/// Replicated view of the `processes` table of the postgresql metadata database.
117pub mod processes_view;
118/// property_get function support from SQL
119/// Datafusion integration
120pub mod query;
121/// Admin-managed query deny list: fingerprinting, the match
122/// context, and the Postgres-backed, TTL-refreshed cache `execute_query` checks every query
123/// against.
124pub mod query_deny_list;
125/// Authorization seam input: `ReadScope` and the `CallerContext` bundle threaded into
126/// `make_session_context`. Consumed by the row-level filter
127/// (`ownership_rewrite::OwnershipRewrite`) and the call-level guard (`audience_guard::AudienceGuard`).
128pub mod read_scope;
129/// Wrapper around ParquetObjectreader to provide ParquetMetaData, reading footers from the
130/// ObjectStore through a cache-backed reader
131pub mod reader_factory;
132/// Exposes regenerate_partitions as a table function that force-regenerates partitions directly
133/// from source data
134pub mod regenerate_partitions_table_function;
135/// Admin scalar UDF that removes a single query-deny-list rule by id
136pub mod remove_query_denial_udf;
137/// Scalar UDF to retire a single partition by file path
138pub mod retire_partition_by_file_udf;
139/// Scalar UDF to retire a single partition by metadata
140pub mod retire_partition_by_metadata_udf;
141/// Exposes retire_partitions as a table function
142pub mod retire_partitions_table_function;
143/// Runtime resources
144pub mod runtime;
145/// Plan-time estimate of the parquet bytes a physical plan will scan
146pub mod scan_cost;
147/// Per-query `MemoryPool` wrapper that adds accounting on top of a shared pool
148pub mod scoped_memory_pool;
149/// SessionConfigurator trait for custom session context configuration
150pub mod session_configurator;
151/// Sql-defined view updated in batch
152pub mod sql_batch_view;
153/// Specification for a view partition backed by a SQL query on the lakehouse.
154pub mod sql_partition_spec;
155/// Auto-discovery configurator for static JSON/CSV tables
156pub mod static_tables_configurator;
157/// Replicated view of the `streams` table of the postgresql metadata database.
158pub mod streams_view;
159/// Rewrite table scans to take the query range into account
160pub mod table_scan_rewrite;
161/// Tracking of expired partitions
162pub mod temp;
163/// Jit view of the call tree built from the thread events of a single stream
164pub mod thread_spans_view;
165/// Basic interface for a set of rows queryable and materializable
166pub mod view;
167/// Parser for `CREATE`/`DROP MATERIALIZED VIEW` statements
168pub mod view_ddl;
169/// The normalized shape of a DDL-defined (or seeded) materialized view, and the validation shared
170/// by the DDL executor and the registry loader.
171pub mod view_definition;
172/// Postgres-backed persistence for DDL-defined view definitions
173/// (`lakehouse_view_set_definitions`).
174pub mod view_definition_store;
175pub mod view_factory;
176/// Table function to query process-specific views
177pub mod view_instance_table_function;
178/// Plans a view definition's merge exactly as the maintenance daemon would, without executing it
179pub mod view_merge_check;
180/// Shared `Arc<ViewFactory>` rebuilt from Postgres-backed view definitions on a timer, giving
181/// `telemetry-maintenance-srv` and `flight-sql-srv` a common, reloadable view of DDL-defined view
182/// sets without a restart.
183pub mod view_registry;
184/// Add or remove view partitions
185pub mod write_partition;