Skip to main content

collect_lightweight_query_load_metrics

Function collect_lightweight_query_load_metrics 

Source
fn collect_lightweight_query_load_metrics(
    df_plan: &dyn ExecutionPlan,
    query_load_region_id: Option<u64>,
) -> RecordBatchMetrics
Expand description

Collects the minimal metrics needed for query-load reporting before EOF.

This intentionally avoids MetricCollector’s full per-plan aggregation, sorting, and plan formatting work on the normal query hot path. The result is still enough for early-stop/cancellation paths to report per-region CPU time, scanned bytes, and physical-region attribution.