Skip to main content

estimate_scan_cost

Function estimate_scan_cost 

Source
pub async fn estimate_scan_cost(
    plan: &Arc<dyn ExecutionPlan>,
    metadata_cache: &MetadataCache,
    opaque_leaf_cost: u64,
) -> ScanCostEstimate
Expand description

Estimates the compressed parquet bytes plan will scan, from the scan nodes alone. Never fails: anything it cannot interpret is costed as an opaque leaf. Joins, aggregates and sorts add nothing; their memory is not predictable from the plan and the pool reservation stays the authority for it.