cloud-fan commented on a change in pull request #25600: [SPARK-11150][SQL] 
Dynamic Partition Pruning
URL: https://github.com/apache/spark/pull/25600#discussion_r320621410
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/predicates.scala
 ##########
 @@ -65,6 +66,41 @@ trait PredicateHelper {
     }
   }
 
+  /**
+   * Find the origin of where the input references of expression exp were 
scanned in the tree of
+   * plan, and if they originate from a single leaf node.
+   * Returns optional tuple with Expression, undoing any projections and 
aliasing that has been done
+   * along the way from plan to origin, and the origin LeafNode plan from 
which all the exp
+   */
+  def findExpressionAndTrackLineageDown(
+    exp: Expression, plan: LogicalPlan): Option[(Expression, LogicalPlan)] = {
 
 Review comment:
   nit: 4 space indentation

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to