zjffdu commented on a change in pull request #4267: URL: https://github.com/apache/zeppelin/pull/4267#discussion_r754862905
########## File path: spark/interpreter/src/main/java/org/apache/zeppelin/spark/SparkInterpreter.java ########## @@ -252,20 +253,28 @@ public SparkVersion getSparkVersion() { return sparkVersion; } - private String extractScalaVersion() throws InterpreterException { - String scalaVersionString = scala.util.Properties.versionString(); + private String extractScalaVersion(SparkConf conf) throws InterpreterException { + String scalaVersionString; + if (conf.contains("zeppelin.spark.scala.version")) { Review comment: It's better to add comment on when `zeppelin.spark.scala.version` is used and when `scala.util.Properties.versionString()` is used -- 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: dev-unsubscr...@zeppelin.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org