{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/14132","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/14132/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/14132/comments","events_url":"https://api.github.com/repos/apache/spark/issues/14132/events","html_url":"https://github.com/apache/spark/pull/14132","id":164785460,"number":14132,"title":"[SPARK-16475][SQL] Broadcast Hint for SQL Queries","user":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-07-11T08:34:55Z","updated_at":"2016-07-14T19:41:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/14132","html_url":"https://github.com/apache/spark/pull/14132","diff_url":"https://github.com/apache/spark/pull/14132.diff","patch_url":"https://github.com/apache/spark/pull/14132.patch"},"body":"## What changes were proposed in this pull request?\r\nThis PR aims to do the followings in Spark SQL.\r\n  - a syntax for generic hints and `BROADCAST (LEFT|RIGHT)?`\r\n  - support MAPJOIN hints and BROACAST syntax as `BroadcastHint`.\r\n\r\n**Target Syntax**\r\n * Generic Hints\r\n ```sql\r\nSELECT /*+ HINTNAME() */ * FROM t\r\nSELECT /*+ MAPJOIN(t) */ * FROM t\r\nSELECT /*+ STREAMTABLE(a,b,c) */ * FROM t\r\nSELECT /*+ INDEX(t emp_job_ix) */ * FROM t\r\n```\r\n\r\n * Recognized MapJoins\r\n ```sql\r\nSELECT /*+ MAPJOIN(t) */ * FROM t JOIN u ON t.id = u.id\r\nSELECT /*+ MAPJOIN(u) */ * FROM t JOIN u ON t.id = u.id\r\nSELECT * FROM t LEFT OUTER JOIN BROADCAST u      /* BROADCAST RIGHT */\r\nSELECT * FROM t LEFT OUTER JOIN BROADCAST LEFT u\r\nSELECT * FROM t LEFT OUTER JOIN BROADCAST RIGHT u\r\n```\r\n\r\nNote that the generic hints are parsed and handled by Optimizers. Currently, unknown `Hint(name, parameters)` are ignored as a default operation.\r\n\r\n## How was this patch tested?\r\n\r\nPass the Jenkins tests with new testcases."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/232770418","html_url":"https://github.com/apache/spark/pull/14132#issuecomment-232770418","issue_url":"https://api.github.com/repos/apache/spark/issues/14132","id":232770418,"user":{"login":"dongjoon-hyun","id":9700541,"avatar_url":"https://avatars.githubusercontent.com/u/9700541?v=3","gravatar_id":"","url":"https://api.github.com/users/dongjoon-hyun","html_url":"https://github.com/dongjoon-hyun","followers_url":"https://api.github.com/users/dongjoon-hyun/followers","following_url":"https://api.github.com/users/dongjoon-hyun/following{/other_user}","gists_url":"https://api.github.com/users/dongjoon-hyun/gists{/gist_id}","starred_url":"https://api.github.com/users/dongjoon-hyun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongjoon-hyun/subscriptions","organizations_url":"https://api.github.com/users/dongjoon-hyun/orgs","repos_url":"https://api.github.com/users/dongjoon-hyun/repos","events_url":"https://api.github.com/users/dongjoon-hyun/events{/privacy}","received_events_url":"https://api.github.com/users/dongjoon-hyun/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T19:41:05Z","updated_at":"2016-07-14T19:41:05Z","body":"Oh, I see. No problem. Thank you for guide. Then, could you update the JIRA too? I added this for the following comments.\r\n> For more information, please see the attached document. One note about the doc: in addition to supporting \"MAPJOIN\", we should also support \"BROADCASTJOIN\"."}}
{"actor":{"display_login":"dongjoon-hyun"}}