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

    https://github.com/apache/spark/pull/5358#discussion_r28199784
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ---
    @@ -171,8 +171,26 @@ object ColumnPruning extends Rule[LogicalPlan] {
     
           Project(substitutedProjection, child)
     
    +    case gen@Generate(_: Explode, _, _, _, c) =>
    --- End diff --
    
    Oh, I see.  Sorry I did not look closely enough.  In general we do this by 
matching on a project that is above the node in question.  This works because 
projects will get pushed down or created in case where unneeded attributes 
exist.  There are other examples in this file where we do this.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to