Github user davies commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11745#discussion_r56705349
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ---
    @@ -306,14 +311,28 @@ object SetOperationPushDown extends Rule[LogicalPlan] 
with PredicateHelper {
     }
     
     /**
    - * Attempts to eliminate the reading of unneeded columns from the query 
plan using the following
    - * transformations:
    + * Attempts to eliminate the reading of unneeded columns from the query 
plan
    + * by pushing Project through Filter.
      *
    - *  - Inserting Projections beneath the following operators:
    - *   - Aggregate
    - *   - Generate
    - *   - Project <- Join
    - *   - LeftSemiJoin
    + * Note: This rule could reverse the effects of 
PushPredicateThroughProject.
    + * This rule should be run before ColumnPruning for ensuring that Project 
can be
    + * pushed as low as possible.
    + */
    +object PushProjectThroughFilter extends Rule[LogicalPlan] {
    --- End diff --
    
    We does not actual PUSH project through filter, we create new Project 
before to prune some columns.
    
    As I said in another PR, we remove the those Project before filter.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to