CostEvaluator¶
CostEvaluator
is an abstraction of cost evaluators in Adaptive Query Execution.
CostEvaluator
is used in AdaptiveSparkPlanExec physical operator based on spark.sql.adaptive.customCostEvaluatorClass configuration property.
Contract¶
Evaluating Cost¶
evaluateCost(
plan: SparkPlan): Cost
Evaluates the cost of the given SparkPlan
Used when:
AdaptiveSparkPlanExec
physical operator is requested for the final physical query plan