[ 
https://issues.apache.org/jira/browse/SPARK-37828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yuming Wang reassigned SPARK-37828:
-----------------------------------

    Assignee: Yuming Wang

> Push down filters through RebalancePartitions
> ---------------------------------------------
>
>                 Key: SPARK-37828
>                 URL: https://issues.apache.org/jira/browse/SPARK-37828
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.3.0
>            Reporter: Yuming Wang
>            Assignee: Yuming Wang
>            Priority: Major
>
> How to reproduce this issue:
> {code:scala}
> spark.sql("SELECT * FROM (SELECT /*+ REBALANCE */  * from range(10)) t11 
> WHERE id = 3").explain(true)
> {code}
> Output:
> {noformat}
> == Optimized Logical Plan ==
> Filter (id#0L = 3)
> +- RebalancePartitions
>    +- Range (0, 10, step=1, splits=None)
> {noformat}
> Expected:
> {noformat}
> == Optimized Logical Plan ==
> RebalancePartitions
> +- Filter (id#0L = 3)
>    +- Range (0, 10, step=1, splits=None)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to