icexelloss commented on a change in pull request #24675: [SPARK-27803][SQL] fix 
column pruning for python UDF
URL: https://github.com/apache/spark/pull/24675#discussion_r286623676
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/optimizer/Optimizer.scala
 ##########
 @@ -1143,6 +1143,8 @@ object PushDownPredicate extends Rule[LogicalPlan] with 
PredicateHelper {
     case _: Repartition => true
     case _: ScriptTransformation => true
     case _: Sort => true
+    case _: BatchEvalPython => true
 
 Review comment:
   For my benefit, would you mind explain what does `canPushThrough` define? 
Are these nodes that a projection and/or filter can be pushed through?

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