HyukjinKwon commented on code in PR #37350:
URL: https://github.com/apache/spark/pull/37350#discussion_r936595553


##########
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/binaryfile/BinaryFileFormatSuite.scala:
##########
@@ -184,6 +184,7 @@ class BinaryFileFormatSuite extends QueryTest with 
SharedSparkSession {
       filters: Seq[Filter],
       testCases: Seq[(FileStatus, Boolean)]): Unit = {
     val funcs = filters.map(BinaryFileFormat.createFilterFunction)
+      .filter(_.isDefined).map(_.get)

Review Comment:
   ```suggestion
       val funcs = filters.flatMap(BinaryFileFormat.createFilterFunction)
   ```



-- 
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]

Reply via email to