Github user steveloughran commented on a diff in the pull request:

    https://github.com/apache/spark/pull/14731#discussion_r76593850
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala 
---
    @@ -244,6 +244,31 @@ class SparkHadoopUtil extends Logging {
       }
     
       /**
    +   * List directories/files matching the path and return the `FileStatus` 
results.
    +   * If the pattern is not a regexp then a simple `getFileStatus(pattern)`
    +   * is called to get the status of that path.
    +   * If the path/pattern does not match anything in the filesystem,
    +   * an empty sequence is returned.
    +   * @param pattern pattern
    +   * @return a possibly empty array of FileStatus entries
    +   */
    +  def globToFileStatus(pattern: Path): Array[FileStatus] = {
    --- End diff --
    
    essentially if anything which might be a wildcard is hit, it gets handed 
off to the globber for the full interpretation. Same for ^ and ], which are 
only part of a pattern within the context of an opening [
    
    Its only those strings which can be verified to be regexp free in a simple 
context-free string scan that say "absolutely no patterns here"
    
    regarding the bigger change: most of it is isolation of the sensitive code 
*and the tests to verify behaviour*


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to