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

    https://github.com/apache/spark/pull/21368#discussion_r189754122
  
    --- Diff: 
repl/scala-2.12/src/main/scala/org/apache/spark/repl/SparkILoop.scala ---
    @@ -37,7 +37,14 @@ class SparkILoop(in0: Option[BufferedReader], out: 
JPrintWriter)
         @transient val spark = if (org.apache.spark.repl.Main.sparkSession != 
null) {
             org.apache.spark.repl.Main.sparkSession
           } else {
    -        org.apache.spark.repl.Main.createSparkSession()
    +        try {
    +          org.apache.spark.repl.Main.createSparkSession()
    +        } catch {
    +          case e: Exception =>
    +            println("Failed to initialize Spark session:")
    +            e.printStackTrace()
    +            sys.exit(1)
    --- End diff --
    
    how about just squashing the commits if it's not hard?


---

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

Reply via email to