wangyum commented on a change in pull request #29406:
URL: https://github.com/apache/spark/pull/29406#discussion_r468970602



##########
File path: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/FileSourceStrategy.scala
##########
@@ -176,8 +176,12 @@ object FileSourceStrategy extends Strategy with Logging {
         l.resolve(fsRelation.dataSchema, 
fsRelation.sparkSession.sessionState.analyzer.resolver)
 
       // Partition keys are not available in the statistics of the files.
-      val dataFilters =
-        
normalizedFiltersWithoutSubqueries.filter(_.references.intersect(partitionSet).isEmpty)
+      val dataFilters = normalizedFiltersWithoutSubqueries.flatMap(f =>

Review comment:
       Please format the code: `.flatMap(f =>` -> `.flatMap { f =>`?




----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to