srowen commented on a change in pull request #24333: [SQL][MINOR][TEST] In
SQLQueryTestSuite ignore .swp and .swo files from processinge
URL: https://github.com/apache/spark/pull/24333#discussion_r274377056
##########
File path: sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala
##########
@@ -329,7 +329,8 @@ class SQLQueryTestSuite extends QueryTest with
SharedSQLContext {
/** Returns all the files (not directories) in a directory, recursively. */
private def listFilesRecursively(path: File): Seq[File] = {
val (dirs, files) = path.listFiles().partition(_.isDirectory)
- files ++ dirs.flatMap(listFilesRecursively)
+ val filteredFiles = files.filter (_.getName matches
validTestFileExtensionsRegEx)
Review comment:
All sounds fine. The regex could match more patterns later, or could be many
regexes. Or could indeed just check for suffixes for now for simplicity and
make it more complicated later.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]