HyukjinKwon commented on code in PR #47313: URL: https://github.com/apache/spark/pull/47313#discussion_r1675389399
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/planning/patterns.scala: ########## @@ -115,6 +115,8 @@ object PhysicalOperation extends OperationHelper { val (fields, filters, child, _) = collectProjectsAndFilters(plan, alwaysInline) // If more than 2 filters are collected, they must all be deterministic. if (filters.length > 1) assert(filters.forall(_.deterministic)) + // PythonUDFs should not be pushed + assert(filters.forall(!_.exists(_.isInstanceOf[PythonUDF]))) Review Comment: Yeah -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org