pub async fn estimate_scan_cost(
plan: &Arc<dyn ExecutionPlan>,
metadata_cache: &MetadataCache,
opaque_leaf_cost: u64,
) -> ScanCostEstimateExpand 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.