Function try_enforce_locality_requirement

Source
pub fn try_enforce_locality_requirement(
    plan: LogicalPlanRef,
    columns: &[usize],
) -> LogicalPlanRef
Expand description

Try to enforce the locality requirement on the given columns. If a better plan can be found, return the better plan. If no better plan can be found, and locality backfill is enabled, wrap the plan with LogicalLocalityProvider. Otherwise, return the plan as is.