File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -94,9 +94,10 @@ class HiveSparkSubmitSuite
94
94
// Before the fix in SPARK-8470, this results in a MissingRequirementError because
95
95
// the HiveContext code mistakenly overrides the class loader that contains user classes.
96
96
// For more detail, see sql/hive/src/test/resources/regression-test-SPARK-8489/*scala.
97
- import Properties .versionString
98
- val version = versionString.substring(versionString.indexOf(" " ) + 1 ,
99
- versionString.lastIndexOf(" ." ))
97
+ val version = Properties .versionNumberString match {
98
+ case v if v.startsWith(" 2.10" ) || v.startsWith(" 2.11" ) => v.substring(0 , 4 )
99
+ case x => throw new Exception (s " Unsupported Scala Version: $x" )
100
+ }
100
101
val testJar = s " sql/hive/src/test/resources/regression-test-SPARK-8489/test- $version.jar "
101
102
val args = Seq (
102
103
" --conf" , " spark.ui.enabled=false" ,
You can’t perform that action at this time.
0 commit comments