[ 
https://issues.apache.org/jira/browse/SPARK-35794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17364783#comment-17364783
 ] 

Apache Spark commented on SPARK-35794:
--------------------------------------

User 'c21' has created a pull request for this issue:
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
>            Priority: Minor
>
> 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: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to