aokolnychyi commented on code in PR #41700:
URL: https://github.com/apache/spark/pull/41700#discussion_r1239034986
##########
sql/catalyst/src/test/scala/org/apache/spark/sql/connector/catalog/InMemoryBaseTable.scala:
##########
@@ -310,11 +329,12 @@ abstract class InMemoryBaseTable(
schema = StructType(prunedFields)
}
- private var _pushedFilters: Array[Filter] = Array.empty
-
override def pushFilters(filters: Array[Filter]): Array[Filter] = {
+ val (evaluableFilters, postScanFilters) = filters.partition(canEvaluate)
Review Comment:
This block allows us to test cases when certain filters are fully evaluated
on the data source side.
--
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]