Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright 2018-2024 LinkedIn Corporation. All rights reserved.
* Copyright 2018-2025 LinkedIn Corporation. All rights reserved.
* Licensed under the BSD-2 Clause license.
* See LICENSE in the project root for license information.
*/
Expand Down Expand Up @@ -88,7 +88,7 @@ public ScalaVersion getScalaVersionOfSpark() {
String sparkVersion = SparkSession.active().version();
if (sparkVersion.matches("2\\.[\\d\\.]*")) {
return ScalaVersion.SCALA_2_11;
} else if (sparkVersion.matches("3\\.[\\d\\.]*")) {
} else if (sparkVersion.matches("3\\d*\\.[\\d\\.]*")) {
return ScalaVersion.SCALA_2_12;
} else {
throw new IllegalStateException(String.format("Unsupported Spark Version %s", sparkVersion));
Expand Down