{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12353","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12353/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12353/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12353/events","html_url":"https://github.com/apache/spark/pull/12353","id":147976993,"number":12353,"title":"[SPARK-14577][SQL] Add spark.sql.codegen.maxCaseBranches config option","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,"milestone":null,"comments":2,"created_at":"2016-04-13T07:50:36Z","updated_at":"2016-04-13T07:57:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12353","html_url":"https://github.com/apache/spark/pull/12353","diff_url":"https://github.com/apache/spark/pull/12353.diff","patch_url":"https://github.com/apache/spark/pull/12353.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nWe currently disable codegen for `CaseWhen` if the number of branches is greater than 20 (in CaseWhen.MAX_NUM_CASES_FOR_CODEGEN). It would be better if this value is a non-public config defined in SQLConf.\r\n\r\n## How was this patch tested?\r\n\r\nPass the Jenkins tests (including a new testcase `Support spark.sql.codegen.maxCaseBranches option`)"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/209291645","html_url":"https://github.com/apache/spark/pull/12353#issuecomment-209291645","issue_url":"https://api.github.com/repos/apache/spark/issues/12353","id":209291645,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars.githubusercontent.com/u/8108735?v=3","gravatar_id":"","url":"https://api.github.com/users/SparkQA","html_url":"https://github.com/SparkQA","followers_url":"https://api.github.com/users/SparkQA/followers","following_url":"https://api.github.com/users/SparkQA/following{/other_user}","gists_url":"https://api.github.com/users/SparkQA/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkQA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkQA/subscriptions","organizations_url":"https://api.github.com/users/SparkQA/orgs","repos_url":"https://api.github.com/users/SparkQA/repos","events_url":"https://api.github.com/users/SparkQA/events{/privacy}","received_events_url":"https://api.github.com/users/SparkQA/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T07:57:29Z","updated_at":"2016-04-13T07:57:29Z","body":"**[Test build #55702 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/55702/consoleFull)** for PR 12353 at commit [`6295de5`](https://github.com/apache/spark/commit/6295de51a69c416849ed0e9aa685ee72b2d97a12)."}}