{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15295","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15295/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15295/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15295/events","html_url":"https://github.com/apache/spark/pull/15295","id":179991998,"number":15295,"title":"[SPARK-17720][SQL] introduce static SQL conf","user":{"login":"cloud-fan","id":3182036,"avatar_url":"https://avatars.githubusercontent.com/u/3182036?v=3","gravatar_id":"","url":"https://api.github.com/users/cloud-fan","html_url":"https://github.com/cloud-fan","followers_url":"https://api.github.com/users/cloud-fan/followers","following_url":"https://api.github.com/users/cloud-fan/following{/other_user}","gists_url":"https://api.github.com/users/cloud-fan/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-fan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-fan/subscriptions","organizations_url":"https://api.github.com/users/cloud-fan/orgs","repos_url":"https://api.github.com/users/cloud-fan/repos","events_url":"https://api.github.com/users/cloud-fan/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-fan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2016-09-29T09:08:58Z","updated_at":"2016-10-12T03:29:44Z","closed_at":"2016-10-12T03:29:29Z","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15295","html_url":"https://github.com/apache/spark/pull/15295","diff_url":"https://github.com/apache/spark/pull/15295.diff","patch_url":"https://github.com/apache/spark/pull/15295.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nSQLConf is session-scoped and mutable. However, we do have the requirement for a static SQL conf, which is global and immutable, e.g. the `schemaStringThreshold` in `HiveExternalCatalog`, the flag to enable/disable hive support, the global temp view database in https://github.com/apache/spark/pull/14897.\r\n\r\nActually we've already implemented static SQL conf implicitly via `SparkConf`, this PR just make it explicit and expose it to users, so that they can see the config value via SQL command or `SparkSession.conf`, and forbid users to set/unset static SQL conf.\r\n\r\n\r\n## How was this patch tested?\r\n\r\nnew tests in SQLConfSuite\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/253109790","html_url":"https://github.com/apache/spark/pull/15295#issuecomment-253109790","issue_url":"https://api.github.com/repos/apache/spark/issues/15295","id":253109790,"user":{"login":"gatorsmile","id":11567269,"avatar_url":"https://avatars.githubusercontent.com/u/11567269?v=3","gravatar_id":"","url":"https://api.github.com/users/gatorsmile","html_url":"https://github.com/gatorsmile","followers_url":"https://api.github.com/users/gatorsmile/followers","following_url":"https://api.github.com/users/gatorsmile/following{/other_user}","gists_url":"https://api.github.com/users/gatorsmile/gists{/gist_id}","starred_url":"https://api.github.com/users/gatorsmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatorsmile/subscriptions","organizations_url":"https://api.github.com/users/gatorsmile/orgs","repos_url":"https://api.github.com/users/gatorsmile/repos","events_url":"https://api.github.com/users/gatorsmile/events{/privacy}","received_events_url":"https://api.github.com/users/gatorsmile/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T03:29:44Z","updated_at":"2016-10-12T03:29:44Z","body":"Merging to master! Thanks!"}}
{"actor":{"display_login":"gatorsmile"}}