{"action":"opened","number":18930,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/18930","id":135479284,"html_url":"https://github.com/apache/spark/pull/18930","diff_url":"https://github.com/apache/spark/pull/18930.diff","patch_url":"https://github.com/apache/spark/pull/18930.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/18930","number":18930,"state":"open","locked":false,"title":"Spark 21677","user":{"login":"jmchung","id":4424660,"avatar_url":"https://avatars0.githubusercontent.com/u/4424660?v=4","gravatar_id":"","url":"https://api.github.com/users/jmchung","html_url":"https://github.com/jmchung","followers_url":"https://api.github.com/users/jmchung/followers","following_url":"https://api.github.com/users/jmchung/following{/other_user}","gists_url":"https://api.github.com/users/jmchung/gists{/gist_id}","starred_url":"https://api.github.com/users/jmchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmchung/subscriptions","organizations_url":"https://api.github.com/users/jmchung/orgs","repos_url":"https://api.github.com/users/jmchung/repos","events_url":"https://api.github.com/users/jmchung/events{/privacy}","received_events_url":"https://api.github.com/users/jmchung/received_events","type":"User","site_admin":false},"body":"## What changes were proposed in this pull request?\r\n``` scala\r\nscala> Seq((\"\"\"{\"Hyukjin\": 224, \"John\": 1225}\"\"\")).toDS.selectExpr(\"json_tuple(value, trim(null))\").show()\r\n...\r\njava.lang.NullPointerException\r\n\tat ...\r\n```\r\n\r\nCurrently the `null` field name will throw NullPointException. As a given field name null can't be matched with any field names in json, we just output null as its column value. This PR achieves it by returning a very unlikely column name `__NullFieldName` in evaluation of the field names.\r\n\r\n\r\n\r\n## How was this patch tested?\r\nAdded unit test.","created_at":"2017-08-13T02:14:24Z","updated_at":"2017-08-13T02:14:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/18930/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/18930/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/18930/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/f07a9f7e73a17ab5447945d8139a40a1ba8372c5","head":{"label":"jmchung:SPARK-21677","ref":"SPARK-21677","sha":"f07a9f7e73a17ab5447945d8139a40a1ba8372c5","user":{"login":"jmchung","id":4424660,"avatar_url":"https://avatars0.githubusercontent.com/u/4424660?v=4","gravatar_id":"","url":"https://api.github.com/users/jmchung","html_url":"https://github.com/jmchung","followers_url":"https://api.github.com/users/jmchung/followers","following_url":"https://api.github.com/users/jmchung/following{/other_user}","gists_url":"https://api.github.com/users/jmchung/gists{/gist_id}","starred_url":"https://api.github.com/users/jmchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmchung/subscriptions","organizations_url":"https://api.github.com/users/jmchung/orgs","repos_url":"https://api.github.com/users/jmchung/repos","events_url":"https://api.github.com/users/jmchung/events{/privacy}","received_events_url":"https://api.github.com/users/jmchung/received_events","type":"User","site_admin":false},"repo":{"id":99491623,"name":"spark","full_name":"jmchung/spark","owner":{"login":"jmchung","id":4424660,"avatar_url":"https://avatars0.githubusercontent.com/u/4424660?v=4","gravatar_id":"","url":"https://api.github.com/users/jmchung","html_url":"https://github.com/jmchung","followers_url":"https://api.github.com/users/jmchung/followers","following_url":"https://api.github.com/users/jmchung/following{/other_user}","gists_url":"https://api.github.com/users/jmchung/gists{/gist_id}","starred_url":"https://api.github.com/users/jmchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmchung/subscriptions","organizations_url":"https://api.github.com/users/jmchung/orgs","repos_url":"https://api.github.com/users/jmchung/repos","events_url":"https://api.github.com/users/jmchung/events{/privacy}","received_events_url":"https://api.github.com/users/jmchung/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jmchung/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/jmchung/spark","forks_url":"https://api.github.com/repos/jmchung/spark/forks","keys_url":"https://api.github.com/repos/jmchung/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jmchung/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jmchung/spark/teams","hooks_url":"https://api.github.com/repos/jmchung/spark/hooks","issue_events_url":"https://api.github.com/repos/jmchung/spark/issues/events{/number}","events_url":"https://api.github.com/repos/jmchung/spark/events","assignees_url":"https://api.github.com/repos/jmchung/spark/assignees{/user}","branches_url":"https://api.github.com/repos/jmchung/spark/branches{/branch}","tags_url":"https://api.github.com/repos/jmchung/spark/tags","blobs_url":"https://api.github.com/repos/jmchung/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jmchung/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jmchung/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/jmchung/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jmchung/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/jmchung/spark/languages","stargazers_url":"https://api.github.com/repos/jmchung/spark/stargazers","contributors_url":"https://api.github.com/repos/jmchung/spark/contributors","subscribers_url":"https://api.github.com/repos/jmchung/spark/subscribers","subscription_url":"https://api.github.com/repos/jmchung/spark/subscription","commits_url":"https://api.github.com/repos/jmchung/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/jmchung/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/jmchung/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/jmchung/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/jmchung/spark/contents/{+path}","compare_url":"https://api.github.com/repos/jmchung/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jmchung/spark/merges","archive_url":"https://api.github.com/repos/jmchung/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jmchung/spark/downloads","issues_url":"https://api.github.com/repos/jmchung/spark/issues{/number}","pulls_url":"https://api.github.com/repos/jmchung/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/jmchung/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/jmchung/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jmchung/spark/labels{/name}","releases_url":"https://api.github.com/repos/jmchung/spark/releases{/id}","deployments_url":"https://api.github.com/repos/jmchung/spark/deployments","created_at":"2017-08-06T14:24:17Z","updated_at":"2017-08-06T14:24:46Z","pushed_at":"2017-08-13T01:49:53Z","git_url":"git://github.com/jmchung/spark.git","ssh_url":"git@github.com:jmchung/spark.git","clone_url":"https://github.com/jmchung/spark.git","svn_url":"https://github.com/jmchung/spark","homepage":null,"size":258321,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"c0e333dbed2571ed995c27576c3ef616446a61ce","user":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":17165658,"name":"spark","full_name":"apache/spark","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","deployments_url":"https://api.github.com/repos/apache/spark/deployments","created_at":"2014-02-25T08:00:08Z","updated_at":"2017-08-12T13:35:25Z","pushed_at":"2017-08-13T01:02:25Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":258376,"stargazers_count":13900,"watchers_count":13900,"language":"Scala","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13082,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":380,"forks":13082,"open_issues":380,"watchers":13900,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/18930"},"html":{"href":"https://github.com/apache/spark/pull/18930"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/18930"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/18930/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/18930/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/18930/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/f07a9f7e73a17ab5447945d8139a40a1ba8372c5"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":18,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"jmchung"}}