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

    https://github.com/apache/spark/pull/7739#discussion_r37457145
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkConf.scala ---
    @@ -479,6 +484,23 @@ class SparkConf(loadDefaults: Boolean) extends 
Cloneable with Logging {
         getAll.sorted.map{case (k, v) => k + "=" + v}.mkString("\n")
       }
     
    +  def getDriverExtraClassPath() : Option[String] = {
    +    // Concatenate common and driver classpath in that order
    +    val commonExtraClassPath = getOption("spark.common.extraClassPath")
    +    val driverExtraClassPath = getOption("spark.driver.extraClassPath")
    +    Option((commonExtraClassPath ++ 
driverExtraClassPath).mkString(File.pathSeparator)).filter(_
    --- End diff --
    
    Hmm, looks like it doesn't matter whether I use Some or None.
    ````
    scala> Option((None++None).mkString(":")).filter(_.nonEmpty)
    res3: Option[String] = None
    
    scala> Some((None++None).mkString(":")).filter(_.nonEmpty)
    res4: Option[String] = None
    ```


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