cloud-fan commented on code in PR #47313:
URL: https://github.com/apache/spark/pull/47313#discussion_r1675479498


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategy.scala:
##########
@@ -161,7 +161,11 @@ object FileSourceStrategy extends Strategy with 
PredicateHelper with Logging {
       val filterSet = ExpressionSet(filters)
 
       val normalizedFilters = DataSourceStrategy.normalizeExprs(
-        filters.filter(_.deterministic), l.output)
+        filters.filter { f =>
+          f.deterministic &&
+            !SubqueryExpression.hasSubquery(f) &&
+            !f.exists(_.isInstanceOf[PythonUDF])

Review Comment:
   `FileSourceStrategy` is planning phase, I think PythonUDF should be 
collected and put in special operators already?



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