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

    https://github.com/apache/spark/pull/22104#discussion_r210390770
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/python/ExtractPythonUDFs.scala
 ---
    @@ -133,6 +134,9 @@ object ExtractPythonUDFs extends Rule[SparkPlan] with 
PredicateHelper {
       }
     
       def apply(plan: SparkPlan): SparkPlan = plan transformUp {
    +    // SPARK-24721: Ignore Python UDFs in DataSourceScan and 
DataSourceV2Scan
    +    case plan: DataSourceScanExec => plan
    --- End diff --
    
    I get rid of the logic previously in `FileSourceStrategy` to exclude 
PythonUDF in the filter in favor of this fix - I think this fix is cleaner. 


---

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

Reply via email to