dongjoon-hyun commented on code in PR #60437:
URL: https://github.com/apache/spark/pull/60437#discussion_r4565585728


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/patterns.scala:
##########
@@ -74,8 +74,14 @@ trait OperationHelper extends AliasHelper with 
PredicateHelper {
         //   1) no Project collected so far or the collected Projects are all 
deterministic
         //   2) this filter does not repeat any expensive expressions from the 
collected
         //      projects.
+        //   3) this filter does not use the result of a Python UDF of the 
collected projects.
+        //      The projects still evaluate the UDF, and `ExtractPythonUDFs` 
shares an evaluation
+        //      only within one operator, so the filter would evaluate it a 
second time.
+        val usesPythonUDF = condition.references.exists { attr =>

Review Comment:
   Thank you, @peter-toth. I added `PruneHiveTablePartitions` and 
`PushVariantIntoScan` to the list of rules, and `PruneHiveTablePartitions` to 
the sentence about the partition filter checks. I also added the change of 
`PushdownPredicatesAndPruneColumnsForCTEDef` to both the description of the 
changes and the user-facing changes.
   



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to