[
https://issues.apache.org/jira/browse/SPARK-35794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wenchen Fan resolved SPARK-35794.
---------------------------------
Fix Version/s: 3.2.0
Resolution: Fixed
Issue resolved by pull request 32944
[https://github.com/apache/spark/pull/32944]
> Allow custom plugin for AQE cost evaluator
> ------------------------------------------
>
> Key: SPARK-35794
> URL: https://issues.apache.org/jira/browse/SPARK-35794
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: Cheng Su
> Assignee: Cheng Su
> Priority: Minor
> Fix For: 3.2.0
>
>
> Current AQE has cost evaluator to decide whether to use new plan after
> replanning. The current used evaluator is `SimpleCostEvaluator` to make
> decision based on number of shuffle in the query plan. This is not perfect
> cost evaluator, and different production environments might want to use
> different custom evaluators. E.g., sometimes we might want to still do skew
> join even though it might introduce extra shuffle (trade off resource for
> better latency), sometimes we might want to take sort into consideration for
> cost as well. So We want to make the cost evaluator to be plugable, and
> developers can implement their own `CostEvaluator` subclass and plug in
> dynamically based on configuration.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]