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

Apache Spark commented on SPARK-35147:
--------------------------------------

User 'sigmod' has created a pull request for this issue:
https://github.com/apache/spark/pull/32463

> Migrate to resolveWithPruning for two command rules
> ---------------------------------------------------
>
>                 Key: SPARK-35147
>                 URL: https://issues.apache.org/jira/browse/SPARK-35147
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Optimizer
>    Affects Versions: 3.1.0
>            Reporter: Yingyi Bu
>            Priority: Major
>
> We can add one TreePattern called "COMMAND". Then, two rules to be migrated:
>  * ResolvePartitionSpec
>  * ResolveCommandsWithIfExists 
>  
> Commit 
> [https://github.com/apache/spark/commit/3db8ec258c4a8438bda73c26fc7b1eb6f9d51631]
>  contains the framework level change and a few example rule changes.
>  
> Example patterns:
> [https://github.com/apache/spark/blob/3db8ec258c4a8438bda73c26fc7b1eb6f9d51631/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreePatterns.scala#L24-L32]
>  
> Example rule:
> [https://github.com/apache/spark/blob/3db8ec258c4a8438bda73c26fc7b1eb6f9d51631/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/CostBasedJoinReorder.scala]
>  
> [https://github.com/apache/spark/pull/32247] is another example



--
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