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


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/PushDownUtils.scala:
##########
@@ -65,7 +65,7 @@ object PushDownUtils extends PredicateHelper {
         val postScanFilters = r.pushFilters(translatedFilters.toArray).map { 
filter =>
           DataSourceStrategy.rebuildExpressionFromFilter(filter, 
translatedFilterToExpr)
         }
-        (Left(r.pushedFilters()), (untranslatableExprs ++ 
postScanFilters).toSeq)
+        (Left(r.pushedFilters()), (postScanFilters ++ 
untranslatableExprs).toSeq)

Review Comment:
   I think this simple heuristic should be safe, although it can't optimize all 
the cases but it won't make things worse.



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