{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/20841","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/20841/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/20841/comments","events_url":"https://api.github.com/repos/apache/spark/issues/20841/events","html_url":"https://github.com/apache/spark/pull/20841","id":305800067,"number":20841,"title":"[SPARK-23706][PYTHON] spark.conf.get(value, default=None) should produce None in PySpark","user":{"login":"HyukjinKwon","id":6477701,"avatar_url":"https://avatars0.githubusercontent.com/u/6477701?v=4","gravatar_id":"","url":"https://api.github.com/users/HyukjinKwon","html_url":"https://github.com/HyukjinKwon","followers_url":"https://api.github.com/users/HyukjinKwon/followers","following_url":"https://api.github.com/users/HyukjinKwon/following{/other_user}","gists_url":"https://api.github.com/users/HyukjinKwon/gists{/gist_id}","starred_url":"https://api.github.com/users/HyukjinKwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyukjinKwon/subscriptions","organizations_url":"https://api.github.com/users/HyukjinKwon/orgs","repos_url":"https://api.github.com/users/HyukjinKwon/repos","events_url":"https://api.github.com/users/HyukjinKwon/events{/privacy}","received_events_url":"https://api.github.com/users/HyukjinKwon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-16T04:37:49Z","updated_at":"2018-03-16T07:05:02Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/20841","html_url":"https://github.com/apache/spark/pull/20841","diff_url":"https://github.com/apache/spark/pull/20841.diff","patch_url":"https://github.com/apache/spark/pull/20841.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nScala:\r\n\r\n```\r\nscala> spark.conf.get(\"hey\", null)\r\nres1: String = null\r\n```\r\n\r\n```\r\nscala> spark.conf.get(\"spark.sql.sources.partitionOverwriteMode\", null)\r\nres2: String = null\r\n```\r\n\r\nPython:\r\n\r\n**Before**\r\n\r\n```\r\n>>> spark.conf.get(\"hey\", None)\r\n...\r\npy4j.protocol.Py4JJavaError: An error occurred while calling o30.get.\r\n: java.util.NoSuchElementException: hey\r\n...\r\n```\r\n\r\n```\r\n>>> spark.conf.get(\"spark.sql.sources.partitionOverwriteMode\", None)\r\nu'STATIC'\r\n```\r\n\r\n**After**\r\n\r\n```\r\n>>> spark.conf.get(\"hey\", None) is None\r\nTrue\r\n```\r\n\r\n```\r\n>>> spark.conf.get(\"spark.sql.sources.partitionOverwriteMode\", None) is None\r\nTrue\r\n```\r\n\r\n*Note that this PR preserves the case below:\r\n\r\n```\r\n>>> spark.conf.get(\"spark.sql.sources.partitionOverwriteMode\")\r\nu'STATIC'\r\n```\r\n\r\n\r\n## How was this patch tested?\r\n\r\nManually tested and unit tests were added.\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/373621888","html_url":"https://github.com/apache/spark/pull/20841#issuecomment-373621888","issue_url":"https://api.github.com/repos/apache/spark/issues/20841","id":373621888,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars1.githubusercontent.com/u/8108735?v=4","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":"2018-03-16T07:05:02Z","updated_at":"2018-03-16T07:05:02Z","author_association":"NONE","body":"**[Test build #88298 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/88298/testReport)** for PR 20841 at commit [`d8ee18f`](https://github.com/apache/spark/commit/d8ee18fab1a6183dfffa6e070e852fda67e1d809).\n * This patch **fails due to an unknown error code, -9**.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}