{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/6909","labels_url":"https://api.github.com/repos/apache/spark/issues/6909/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/6909/comments","events_url":"https://api.github.com/repos/apache/spark/issues/6909/events","html_url":"https://github.com/apache/spark/pull/6909","id":89666554,"number":6909,"title":"[SPARK-8498] Add regression test for SPARK-8470","user":{"login":"andrewor14","id":2133137,"avatar_url":"https://avatars.githubusercontent.com/u/2133137?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewor14","html_url":"https://github.com/andrewor14","followers_url":"https://api.github.com/users/andrewor14/followers","following_url":"https://api.github.com/users/andrewor14/following{/other_user}","gists_url":"https://api.github.com/users/andrewor14/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewor14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewor14/subscriptions","organizations_url":"https://api.github.com/users/andrewor14/orgs","repos_url":"https://api.github.com/users/andrewor14/repos","events_url":"https://api.github.com/users/andrewor14/events{/privacy}","received_events_url":"https://api.github.com/users/andrewor14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-19T21:40:41Z","updated_at":"2015-06-19T21:52:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/6909","html_url":"https://github.com/apache/spark/pull/6909","diff_url":"https://github.com/apache/spark/pull/6909.diff","patch_url":"https://github.com/apache/spark/pull/6909.patch"},"body":"**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.\r\n\r\n**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.\r\n\r\nI tested this with and without the fix in #6891 and verified that it passes only if the fix is present."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/113654119","html_url":"https://github.com/apache/spark/pull/6909#issuecomment-113654119","issue_url":"https://api.github.com/repos/apache/spark/issues/6909","id":113654119,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T21:52:11Z","updated_at":"2015-06-19T21:52:11Z","body":" Merged build triggered."}}