File tree Expand file tree Collapse file tree
sql/hive/src/test/scala/org/apache/spark/sql/hive Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,9 +94,10 @@ class HiveSparkSubmitSuite
9494 // Before the fix in SPARK-8470, this results in a MissingRequirementError because
9595 // the HiveContext code mistakenly overrides the class loader that contains user classes.
9696 // 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+ }
100101 val testJar = s " sql/hive/src/test/resources/regression-test-SPARK-8489/test- $version.jar "
101102 val args = Seq (
102103 " --conf" , " spark.ui.enabled=false" ,
You can’t perform that action at this time.
0 commit comments