LuciferYang commented on code in PR #49599:
URL: https://github.com/apache/spark/pull/49599#discussion_r1925139317


##########
core/src/test/scala/org/apache/spark/util/UtilsSuite.scala:
##########
@@ -526,10 +526,18 @@ class UtilsSuite extends SparkFunSuite with 
ResetSystemProperties {
 
     // The following 3 scenarios are only for the method: createDirectory(File)
     // 6. Symbolic link
+    lazy val (majorVersion: Int, patchVersion: Int) = {
+      // JAVA_RUNTIME_VERSION is like "17.0.14+7-LTS"
+      val splits = SystemUtils.JAVA_RUNTIME_VERSION.split("\\.")

Review Comment:
   Good advice, thank you @MaxGekk updated



##########
core/src/test/scala/org/apache/spark/util/UtilsSuite.scala:
##########
@@ -526,10 +526,18 @@ class UtilsSuite extends SparkFunSuite with 
ResetSystemProperties {
 
     // The following 3 scenarios are only for the method: createDirectory(File)
     // 6. Symbolic link
+    lazy val (majorVersion: Int, patchVersion: Int) = {
+      // JAVA_RUNTIME_VERSION is like "17.0.14+7-LTS"
+      val splits = SystemUtils.JAVA_RUNTIME_VERSION.split("\\.")

Review Comment:
   Good advice, thank you @MaxGekk ~ updated



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to