{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/11421","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/11421/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/11421/comments","events_url":"https://api.github.com/repos/apache/spark/issues/11421/events","html_url":"https://github.com/apache/spark/pull/11421","id":137068606,"number":11421,"title":"[SPARK-13540][SQL] Supports using nested classes within Scala objects as Dataset element type","user":{"login":"liancheng","id":230655,"avatar_url":"https://avatars.githubusercontent.com/u/230655?v=3","gravatar_id":"","url":"https://api.github.com/users/liancheng","html_url":"https://github.com/liancheng","followers_url":"https://api.github.com/users/liancheng/followers","following_url":"https://api.github.com/users/liancheng/following{/other_user}","gists_url":"https://api.github.com/users/liancheng/gists{/gist_id}","starred_url":"https://api.github.com/users/liancheng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liancheng/subscriptions","organizations_url":"https://api.github.com/users/liancheng/orgs","repos_url":"https://api.github.com/users/liancheng/repos","events_url":"https://api.github.com/users/liancheng/events{/privacy}","received_events_url":"https://api.github.com/users/liancheng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-02-28T16:22:30Z","updated_at":"2016-02-29T13:19:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11421","html_url":"https://github.com/apache/spark/pull/11421","diff_url":"https://github.com/apache/spark/pull/11421.diff","patch_url":"https://github.com/apache/spark/pull/11421.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nNested classes defined within Scala objects are translated into Java static nested classes. Unlike inner classes, they don't need outer scopes. But the analyzer still thinks that an outer scope is required.\r\n\r\nThis PR fixes this issue simply by checking whether a nested class is static before looking up its outer scope.\r\n\r\n## How was this patch tested?\r\n\r\nA test case is added to `DatasetSuite`. It checks contents of a Dataset whose element type is a nested class declared in a Scala object."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/190208679","html_url":"https://github.com/apache/spark/pull/11421#issuecomment-190208679","issue_url":"https://api.github.com/repos/apache/spark/issues/11421","id":190208679,"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":"2016-02-29T13:19:04Z","updated_at":"2016-02-29T13:19:04Z","body":"Test PASSed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/52185/\nTest PASSed."}}