{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/39635628","id":39635628,"diff_hunk":"@@ -189,6 +190,14 @@ def approxCountDistinct(col, rsd=None):\n     return Column(jc)\n \n \n+@since(1.6)\n+def broadcast(df):\n+    \"\"\"Marks a DataFrame as small enough for use in broadcast joins.\"\"\"","path":"python/pyspark/sql/functions.py","position":14,"original_position":14,"commit_id":"8f3753cfe2f8655473d8e70802307c99f1af3640","original_commit_id":"ded210be4bb7c01f6df1ede6269cfb2b1db325d2","user":{"login":"Jianfeng-chs","id":11978505,"avatar_url":"https://avatars.githubusercontent.com/u/11978505?v=3","gravatar_id":"","url":"https://api.github.com/users/Jianfeng-chs","html_url":"https://github.com/Jianfeng-chs","followers_url":"https://api.github.com/users/Jianfeng-chs/followers","following_url":"https://api.github.com/users/Jianfeng-chs/following{/other_user}","gists_url":"https://api.github.com/users/Jianfeng-chs/gists{/gist_id}","starred_url":"https://api.github.com/users/Jianfeng-chs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jianfeng-chs/subscriptions","organizations_url":"https://api.github.com/users/Jianfeng-chs/orgs","repos_url":"https://api.github.com/users/Jianfeng-chs/repos","events_url":"https://api.github.com/users/Jianfeng-chs/events{/privacy}","received_events_url":"https://api.github.com/users/Jianfeng-chs/received_events","type":"User","site_admin":false},"body":"Reynold Xin, I have added one test for this.","created_at":"2015-09-16T14:24:40Z","updated_at":"2015-09-16T14:24:40Z","html_url":"https://github.com/apache/spark/pull/8777#discussion_r39635628","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/8777","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/39635628"},"html":{"href":"https://github.com/apache/spark/pull/8777#discussion_r39635628"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/8777"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/8777","id":45124846,"html_url":"https://github.com/apache/spark/pull/8777","diff_url":"https://github.com/apache/spark/pull/8777.diff","patch_url":"https://github.com/apache/spark/pull/8777.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/8777","number":8777,"state":"open","locked":false,"title":"[SPARK-10577] [PySpark] DataFrame hint for broadcast join","user":{"login":"Jianfeng-chs","id":11978505,"avatar_url":"https://avatars.githubusercontent.com/u/11978505?v=3","gravatar_id":"","url":"https://api.github.com/users/Jianfeng-chs","html_url":"https://github.com/Jianfeng-chs","followers_url":"https://api.github.com/users/Jianfeng-chs/followers","following_url":"https://api.github.com/users/Jianfeng-chs/following{/other_user}","gists_url":"https://api.github.com/users/Jianfeng-chs/gists{/gist_id}","starred_url":"https://api.github.com/users/Jianfeng-chs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jianfeng-chs/subscriptions","organizations_url":"https://api.github.com/users/Jianfeng-chs/orgs","repos_url":"https://api.github.com/users/Jianfeng-chs/repos","events_url":"https://api.github.com/users/Jianfeng-chs/events{/privacy}","received_events_url":"https://api.github.com/users/Jianfeng-chs/received_events","type":"User","site_admin":false},"body":"https://issues.apache.org/jira/browse/SPARK-10577","created_at":"2015-09-16T02:28:31Z","updated_at":"2015-09-16T14:24:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce45d5ff46a3db9fefa0981c92d1e114bc75f355","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/8777/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/8777/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/8777/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/8f3753cfe2f8655473d8e70802307c99f1af3640","head":{"label":"Jianfeng-chs:master","ref":"master","sha":"8f3753cfe2f8655473d8e70802307c99f1af3640","user":{"login":"Jianfeng-chs","id":11978505,"avatar_url":"https://avatars.githubusercontent.com/u/11978505?v=3","gravatar_id":"","url":"https://api.github.com/users/Jianfeng-chs","html_url":"https://github.com/Jianfeng-chs","followers_url":"https://api.github.com/users/Jianfeng-chs/followers","following_url":"https://api.github.com/users/Jianfeng-chs/following{/other_user}","gists_url":"https://api.github.com/users/Jianfeng-chs/gists{/gist_id}","starred_url":"https://api.github.com/users/Jianfeng-chs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jianfeng-chs/subscriptions","organizations_url":"https://api.github.com/users/Jianfeng-chs/orgs","repos_url":"https://api.github.com/users/Jianfeng-chs/repos","events_url":"https://api.github.com/users/Jianfeng-chs/events{/privacy}","received_events_url":"https://api.github.com/users/Jianfeng-chs/received_events","type":"User","site_admin":false},"repo":{"id":42557127,"name":"spark","full_name":"Jianfeng-chs/spark","owner":{"login":"Jianfeng-chs","id":11978505,"avatar_url":"https://avatars.githubusercontent.com/u/11978505?v=3","gravatar_id":"","url":"https://api.github.com/users/Jianfeng-chs","html_url":"https://github.com/Jianfeng-chs","followers_url":"https://api.github.com/users/Jianfeng-chs/followers","following_url":"https://api.github.com/users/Jianfeng-chs/following{/other_user}","gists_url":"https://api.github.com/users/Jianfeng-chs/gists{/gist_id}","starred_url":"https://api.github.com/users/Jianfeng-chs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jianfeng-chs/subscriptions","organizations_url":"https://api.github.com/users/Jianfeng-chs/orgs","repos_url":"https://api.github.com/users/Jianfeng-chs/repos","events_url":"https://api.github.com/users/Jianfeng-chs/events{/privacy}","received_events_url":"https://api.github.com/users/Jianfeng-chs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Jianfeng-chs/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/Jianfeng-chs/spark","forks_url":"https://api.github.com/repos/Jianfeng-chs/spark/forks","keys_url":"https://api.github.com/repos/Jianfeng-chs/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Jianfeng-chs/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Jianfeng-chs/spark/teams","hooks_url":"https://api.github.com/repos/Jianfeng-chs/spark/hooks","issue_events_url":"https://api.github.com/repos/Jianfeng-chs/spark/issues/events{/number}","events_url":"https://api.github.com/repos/Jianfeng-chs/spark/events","assignees_url":"https://api.github.com/repos/Jianfeng-chs/spark/assignees{/user}","branches_url":"https://api.github.com/repos/Jianfeng-chs/spark/branches{/branch}","tags_url":"https://api.github.com/repos/Jianfeng-chs/spark/tags","blobs_url":"https://api.github.com/repos/Jianfeng-chs/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Jianfeng-chs/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Jianfeng-chs/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/Jianfeng-chs/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Jianfeng-chs/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/Jianfeng-chs/spark/languages","stargazers_url":"https://api.github.com/repos/Jianfeng-chs/spark/stargazers","contributors_url":"https://api.github.com/repos/Jianfeng-chs/spark/contributors","subscribers_url":"https://api.github.com/repos/Jianfeng-chs/spark/subscribers","subscription_url":"https://api.github.com/repos/Jianfeng-chs/spark/subscription","commits_url":"https://api.github.com/repos/Jianfeng-chs/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/Jianfeng-chs/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/Jianfeng-chs/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/Jianfeng-chs/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/Jianfeng-chs/spark/contents/{+path}","compare_url":"https://api.github.com/repos/Jianfeng-chs/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Jianfeng-chs/spark/merges","archive_url":"https://api.github.com/repos/Jianfeng-chs/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Jianfeng-chs/spark/downloads","issues_url":"https://api.github.com/repos/Jianfeng-chs/spark/issues{/number}","pulls_url":"https://api.github.com/repos/Jianfeng-chs/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/Jianfeng-chs/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/Jianfeng-chs/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Jianfeng-chs/spark/labels{/name}","releases_url":"https://api.github.com/repos/Jianfeng-chs/spark/releases{/id}","created_at":"2015-09-16T01:30:05Z","updated_at":"2015-09-16T01:30:28Z","pushed_at":"2015-09-16T14:08:08Z","git_url":"git://github.com/Jianfeng-chs/spark.git","ssh_url":"git@github.com:Jianfeng-chs/spark.git","clone_url":"https://github.com/Jianfeng-chs/spark.git","svn_url":"https://github.com/Jianfeng-chs/spark","homepage":null,"size":124931,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"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":"35a19f3357d2ec017cfefb90f1018403e9617de4","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","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://avatars.githubusercontent.com/u/47359?v=3","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}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-09-16T13:40:57Z","pushed_at":"2015-09-16T14:08:15Z","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":1620499,"stargazers_count":5445,"watchers_count":5445,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5022,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":338,"forks":5022,"open_issues":338,"watchers":5445,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/8777"},"html":{"href":"https://github.com/apache/spark/pull/8777"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/8777"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/8777/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/8777/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/8777/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/8f3753cfe2f8655473d8e70802307c99f1af3640"}}}}