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¶
Evaluates the cost of the given SparkPlan
Used when:
AdaptiveSparkPlanExecphysical operator is requested for the final physical query plan