viirya commented on a change in pull request #28366:
URL: https://github.com/apache/spark/pull/28366#discussion_r419781231
##########
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:
In `FileSourceScanExec`, this pushed down filters are shown there.
----------------------------------------------------------------
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]