Uh oh!
There was an error while loading. Please reload this page.
[SPARK-12653][SQL] Re-enable test "SPARK-8489: MissingRequirementError during reflection" - #11744
[SPARK-12653][SQL] Re-enable test "SPARK-8489: MissingRequirementError during reflection"#11744dongjoon-hyun wants to merge 2 commits into
Conversation
…ing reflection" Current Error: ``` Exception in thread "main" java.lang.NoSuchMethodError: org.apache.spark.SparkContext$.$lessinit$greater$default$6()Lscala/collection/Map; ``` Scala 2.11 Error with test.jar built by Scala 2.10.5: ``` Exception in thread "main" java.lang.NoSuchMethodError: scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;)Lscala/reflect/api/JavaMirrors$JavaMirror; ```
SparkQA
commented
Mar 16, 2016
Test build #53246 has finished for PR 11744 at commit
|
| // 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" | ||
| import Properties.versionString | ||
| val version = versionString.substring(versionString.indexOf(" ") + 1, |
There was a problem hiding this comment.
it might be better if you explicitly match 2.10 and 2.11, and throw exceptions for other things. I think the error message then would be more obvious when we introduce support for 2.12.
There was a problem hiding this comment.
Thank you. I see. I will change soon.
rxin
commented
Mar 16, 2016
LGTM other than that one comment. |
dongjoon-hyun
commented
Mar 16, 2016
I updated the code to use exact matching and tested on both 2.10 and 2.11 again. |
rxin
commented
Mar 16, 2016
LGTM pending Jenkins |
SparkQA
commented
Mar 16, 2016
Test build #53300 has finished for PR 11744 at commit
|
srowen
commented
Mar 16, 2016
Merged to master. We'll watch the 2.10 builds too. |
dongjoon-hyun
commented
Mar 16, 2016
Thank you, @srowen . |
…r during reflection" ## What changes were proposed in this pull request? The purpose of [SPARK-12653](https://issues.apache.org/jira/browse/SPARK-12653) is re-enabling a regression test. Historically, the target regression test is added by [SPARK-8498](apache@093c348), but is temporarily disabled by [SPARK-12615](apache@8ce645d) due to binary compatibility error. The following is the current error message at the submitting spark job with the pre-built `test.jar` file in the target regression test. ``` Exception in thread "main" java.lang.NoSuchMethodError: org.apache.spark.SparkContext$.$lessinit$greater$default$6()Lscala/collection/Map; ``` Simple rebuilding `test.jar` can not recover the purpose of testcase since we need to support both Scala 2.10 and 2.11 for a while. For example, we will face the following Scala 2.11 error if we use `test.jar` built by Scala 2.10. ``` Exception in thread "main" java.lang.NoSuchMethodError: scala.reflect.api.JavaUniverse.runtimeMirror(Ljava/lang/ClassLoader;)Lscala/reflect/api/JavaMirrors$JavaMirror; ``` This PR replace the existing `test.jar` with `test-2.10.jar` and `test-2.11.jar` and improve the regression test to use the suitable jar file. ## How was this patch tested? Pass the existing Jenkins test. Author: Dongjoon Hyun <dongjoon@apache.org> Closesapache#11744 from dongjoon-hyun/SPARK-12653.
## What changes were proposed in this pull request? Introduced by #21320 and #11744 ``` $ sbt > ++2.12.6 > project sql > compile ... [error] [warn] spark/sql/core/src/main/scala/org/apache/spark/sql/execution/ProjectionOverSchema.scala:41: match may not be exhaustive. [error] It would fail on the following inputs: (_, ArrayType(_, _)), (_, _) [error] [warn] getProjection(a.child).map(p => (p, p.dataType)).map { [error] [warn] [error] [warn] spark/sql/core/src/main/scala/org/apache/spark/sql/execution/ProjectionOverSchema.scala:52: match may not be exhaustive. [error] It would fail on the following input: (_, _) [error] [warn] getProjection(child).map(p => (p, p.dataType)).map { [error] [warn] ... ``` And ``` $ sbt > ++2.12.6 > project hive > testOnly *ParquetMetastoreSuite ... [error] /Users/rendong/wdi/spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala:22: object tools is not a member of package scala [error] import scala.tools.nsc.Properties [error] ^ [error] /Users/rendong/wdi/spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala:146: not found: value Properties [error] val version = Properties.versionNumberString match { [error] ^ [error] two errors found ... ``` ## How was this patch tested? Existing tests. Closes#22260 from sadhen/fix_exhaustive_match. Authored-by: 忍冬 <rendong@wacai.com> Signed-off-by: hyukjinkwon <gurwls223@apache.org>
## What changes were proposed in this pull request? Introduced by apache#21320 and apache#11744 ``` $ sbt > ++2.12.6 > project sql > compile ... [error] [warn] spark/sql/core/src/main/scala/org/apache/spark/sql/execution/ProjectionOverSchema.scala:41: match may not be exhaustive. [error] It would fail on the following inputs: (_, ArrayType(_, _)), (_, _) [error] [warn] getProjection(a.child).map(p => (p, p.dataType)).map { [error] [warn] [error] [warn] spark/sql/core/src/main/scala/org/apache/spark/sql/execution/ProjectionOverSchema.scala:52: match may not be exhaustive. [error] It would fail on the following input: (_, _) [error] [warn] getProjection(child).map(p => (p, p.dataType)).map { [error] [warn] ... ``` And ``` $ sbt > ++2.12.6 > project hive > testOnly *ParquetMetastoreSuite ... [error] /Users/rendong/wdi/spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala:22: object tools is not a member of package scala [error] import scala.tools.nsc.Properties [error] ^ [error] /Users/rendong/wdi/spark/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveSparkSubmitSuite.scala:146: not found: value Properties [error] val version = Properties.versionNumberString match { [error] ^ [error] two errors found ... ``` ## How was this patch tested? Existing tests. Closesapache#22260 from sadhen/fix_exhaustive_match. Authored-by: 忍冬 <rendong@wacai.com> Signed-off-by: hyukjinkwon <gurwls223@apache.org>
What changes were proposed in this pull request?
The purpose of SPARK-12653 is re-enabling a regression test.
Historically, the target regression test is added by SPARK-8498, but is temporarily disabled by SPARK-12615 due to binary compatibility error.
The following is the current error message at the submitting spark job with the pre-built
test.jarfile in the target regression test.Simple rebuilding
test.jarcan not recover the purpose of testcase since we need to support both Scala 2.10 and 2.11 for a while. For example, we will face the following Scala 2.11 error if we usetest.jarbuilt by Scala 2.10.This PR replace the existing
test.jarwithtest-2.10.jarandtest-2.11.jarand improve the regression test to use the suitable jar file.How was this patch tested?
Pass the existing Jenkins test.