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

Sunitha Kambhampati commented on SPARK-26249:
---------------------------------------------

I will post a PR soon.  

> Extension Points Enhancements to inject a rule in order and to add a batch
> --------------------------------------------------------------------------
>
>                 Key: SPARK-26249
>                 URL: https://issues.apache.org/jira/browse/SPARK-26249
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Sunitha Kambhampati
>            Priority: Major
>
> +Motivation:+  
> Spark has extension points API to allow third parties to extend Spark with 
> custom optimization rules.  The current API does not allow fine grain control 
> on when the optimization rule will be exercised.
> In our use cases, we have optimization rules that we want to add as 
> extensions to a batch in a specific order.
> In the current API,  there is no way to add a batch to the optimization using 
> the SparkSessionExtensions API, similar to the postHocOptimizationBatches in 
> SparkOptimizer.
> +Proposal:+ 
> Add 2 new API's to the existing Extension Points to allow for more 
> flexibility for third party users of Spark. 
>  # Inject a optimizer rule to a batch in order 
>  # Inject a optimizer batch in order
> The design spec is here:
> [https://drive.google.com/file/d/1m7rQZ9OZFl0MH5KS12CiIg3upLJSYfsA/view?usp=sharing]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to