{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12846","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12846/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12846/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12846/events","html_url":"https://github.com/apache/spark/pull/12846","id":152622804,"number":12846,"title":"[SPARK-14422][SQL] Improve handling of optional configs in SQLConf","user":{"login":"techaddict","id":1378755,"avatar_url":"https://avatars.githubusercontent.com/u/1378755?v=3","gravatar_id":"","url":"https://api.github.com/users/techaddict","html_url":"https://github.com/techaddict","followers_url":"https://api.github.com/users/techaddict/followers","following_url":"https://api.github.com/users/techaddict/following{/other_user}","gists_url":"https://api.github.com/users/techaddict/gists{/gist_id}","starred_url":"https://api.github.com/users/techaddict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techaddict/subscriptions","organizations_url":"https://api.github.com/users/techaddict/orgs","repos_url":"https://api.github.com/users/techaddict/repos","events_url":"https://api.github.com/users/techaddict/events{/privacy}","received_events_url":"https://api.github.com/users/techaddict/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-05-02T19:14:15Z","updated_at":"2016-05-02T22:55:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12846","html_url":"https://github.com/apache/spark/pull/12846","diff_url":"https://github.com/apache/spark/pull/12846.diff","patch_url":"https://github.com/apache/spark/pull/12846.patch"},"body":"## What changes were proposed in this pull request?\r\nCreate a new API for handling Optional Configs in SQLConf.\r\nRight now `getConf` for `OptionalConfigEntry[T]` returns value of type `T`, if doesn't exist throws an exception. Add new method `getOptionalConf`(suggestions on naming) which will now returns value of type `Option[T]`(so if doesn't exist it returns `None`).\r\n\r\n## How was this patch tested?\r\nAdd test and ran tests locally."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/216389178","html_url":"https://github.com/apache/spark/pull/12846#issuecomment-216389178","issue_url":"https://api.github.com/repos/apache/spark/issues/12846","id":216389178,"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-05-02T22:55:19Z","updated_at":"2016-05-02T22:55:19Z","body":"**[Test build #57562 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/57562/consoleFull)** for PR 12846 at commit [`5a25075`](https://github.com/apache/spark/commit/5a2507575cf926056285bb20d249845a6ac81a70).\n * This patch **fails Spark unit tests**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}