caican00 commented on code in PR #37479:
URL: https://github.com/apache/spark/pull/37479#discussion_r945427452
##########
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:
> This order switching makes sense to me. I think the translated filters
(`postScanFilters`) are simple filters that can be evaluated faster, while the
untranslated filters are normally complicated filters that take more time to
evaluate, so we want to evaluate the `postScanFilters` filters first.
Thank you for your reply. That's exactly what I was thinking
--
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]