dbtsai commented on a change in pull request #28366:
URL: https://github.com/apache/spark/pull/28366#discussion_r419769354
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategy.scala
##########
@@ -178,8 +178,11 @@ object FileSourceStrategy extends Strategy with Logging {
// Partition keys are not available in the statistics of the files.
val dataFilters =
normalizedFiltersWithoutSubqueries.filter(_.references.intersect(partitionSet).isEmpty)
- logInfo(s"Pushed Filters: " +
-
s"${dataFilters.flatMap(DataSourceStrategy.translateFilter).mkString(",")}")
+ val supportNestedPredicatePushdown =
+ DataSourceUtils.supportNestedPredicatePushdown(fsRelation)
+ val pushedFilters = dataFilters
+ .flatMap(DataSourceStrategy.translateFilter(_,
supportNestedPredicatePushdown))
+ logInfo(s"Pushed Filters: ${pushedFilters.mkString(",")}")
Review comment:
Is it possible to have it propagated back so when an user does
`explain(true)`, the filters that are pushed down can be shown?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]