Skip to content
Snippets Groups Projects
Commit bec40e52 authored by Andrew Or's avatar Andrew Or
Browse files

[HOTFIX] [SPARK-8489] Correct JIRA number in previous commit

It should be SPARK-8489, not SPARK-8498.
parent 093c3483
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ import org.apache.spark.{SparkConf, SparkContext}
import org.apache.spark.sql.hive.HiveContext
/**
* Entry point in test application for SPARK-8498.
* Entry point in test application for SPARK-8489.
*
* This file is not meant to be compiled during tests. It is already included
* in a pre-built "test.jar" located in the same directory as this file.
......@@ -30,14 +30,14 @@ import org.apache.spark.sql.hive.HiveContext
*/
object Main {
def main(args: Array[String]) {
println("Running regression test for SPARK-8498.")
println("Running regression test for SPARK-8489.")
val sc = new SparkContext("local", "testing")
val hc = new HiveContext(sc)
// This line should not throw scala.reflect.internal.MissingRequirementError.
// See SPARK-8470 for more detail.
val df = hc.createDataFrame(Seq(MyCoolClass("1", "2", "3")))
df.collect()
println("Regression test for SPARK-8498 success!")
println("Regression test for SPARK-8489 success!")
}
}
......@@ -15,6 +15,6 @@
* limitations under the License.
*/
/** Dummy class used in regression test SPARK-8498. */
/** Dummy class used in regression test SPARK-8489. */
case class MyCoolClass(past: String, present: String, future: String)
......@@ -67,13 +67,13 @@ class HiveSparkSubmitSuite
runSparkSubmit(args)
}
test("SPARK-8498: MissingRequirementError during reflection") {
// This test uses a pre-built jar to test SPARK-8498. In a nutshell, this test creates
test("SPARK-8489: MissingRequirementError during reflection") {
// This test uses a pre-built jar to test SPARK-8489. In a nutshell, this test creates
// a HiveContext and uses it to create a data frame from an RDD using reflection.
// Before the fix in SPARK-8470, this results in a MissingRequirementError because
// the HiveContext code mistakenly overrides the class loader that contains user classes.
// For more detail, see sql/hive/src/test/resources/regression-test-SPARK-8498/*scala.
val testJar = "sql/hive/src/test/resources/regression-test-SPARK-8498/test.jar"
// For more detail, see sql/hive/src/test/resources/regression-test-SPARK-8489/*scala.
val testJar = "sql/hive/src/test/resources/regression-test-SPARK-8489/test.jar"
val args = Seq("--class", "Main", testJar)
runSparkSubmit(args)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment