-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[SPARK-8498] [SQL] Add regression test for SPARK-8470 #6909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
4c3cebd
to
7ede573
Compare
Due to the complexity of the reproduction, this requires us to pre-package a special test jar and include it in the Spark project itself. This test jar is then used in HiveSparkSubmitSuite.
retest this please |
Test build #35327 has finished for PR 6909 at commit
|
Test build #35328 has finished for PR 6909 at commit
|
Merging it to master and branch 1.4. |
**Summary of the problem in SPARK-8470.** When using `HiveContext` to create a data frame of a user case class, Spark throws `scala.reflect.internal.MissingRequirementError` when it tries to infer the schema using reflection. This is caused by `HiveContext` silently overwriting the context class loader containing the user classes. **What this issue is about.** This issue adds regression tests for SPARK-8470, which is already fixed in #6891. We closed SPARK-8470 as a duplicate because it is a different manifestation of the same problem in SPARK-8368. Due to the complexity of the reproduction, this requires us to pre-package a special test jar and include it in the Spark project itself. I tested this with and without the fix in #6891 and verified that it passes only if the fix is present. Author: Andrew Or <andrew@databricks.com> Closes #6909 from andrewor14/SPARK-8498 and squashes the following commits: 5e9d688 [Andrew Or] Add regression test for SPARK-8470 (cherry picked from commit 093c348) Signed-off-by: Yin Huai <yhuai@databricks.com>
Test build #35336 has finished for PR 6909 at commit
|
import org.apache.spark.sql.hive.HiveContext | ||
|
||
/** | ||
* Entry point in test application for SPARK-8498. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this is supposed to be SPARK-8489. This is corrected in a future commit.
**Summary of the problem in SPARK-8470.** When using `HiveContext` to create a data frame of a user case class, Spark throws `scala.reflect.internal.MissingRequirementError` when it tries to infer the schema using reflection. This is caused by `HiveContext` silently overwriting the context class loader containing the user classes. **What this issue is about.** This issue adds regression tests for SPARK-8470, which is already fixed in apache#6891. We closed SPARK-8470 as a duplicate because it is a different manifestation of the same problem in SPARK-8368. Due to the complexity of the reproduction, this requires us to pre-package a special test jar and include it in the Spark project itself. I tested this with and without the fix in apache#6891 and verified that it passes only if the fix is present. Author: Andrew Or <andrew@databricks.com> Closes apache#6909 from andrewor14/SPARK-8498 and squashes the following commits: 5e9d688 [Andrew Or] Add regression test for SPARK-8470 (cherry picked from commit 093c348) Signed-off-by: Yin Huai <yhuai@databricks.com>
Summary of the problem in SPARK-8470. When using
HiveContext
to create a data frame of a user case class, Spark throwsscala.reflect.internal.MissingRequirementError
when it tries to infer the schema using reflection. This is caused byHiveContext
silently overwriting the context class loader containing the user classes.What this issue is about. This issue adds regression tests for SPARK-8470, which is already fixed in #6891. We closed SPARK-8470 as a duplicate because it is a different manifestation of the same problem in SPARK-8368. Due to the complexity of the reproduction, this requires us to pre-package a special test jar and include it in the Spark project itself.
I tested this with and without the fix in #6891 and verified that it passes only if the fix is present.