{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/16826","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/16826/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/16826/comments","events_url":"https://api.github.com/repos/apache/spark/issues/16826/events","html_url":"https://github.com/apache/spark/pull/16826","id":205738866,"number":16826,"title":"[WIP][Spark-19540][SQL] Add ability to clone SparkSession wherein cloned session has a reference to SharedState and an identical copy of the SessionState","user":{"login":"kunalkhamar","id":7865120,"avatar_url":"https://avatars.githubusercontent.com/u/7865120?v=3","gravatar_id":"","url":"https://api.github.com/users/kunalkhamar","html_url":"https://github.com/kunalkhamar","followers_url":"https://api.github.com/users/kunalkhamar/followers","following_url":"https://api.github.com/users/kunalkhamar/following{/other_user}","gists_url":"https://api.github.com/users/kunalkhamar/gists{/gist_id}","starred_url":"https://api.github.com/users/kunalkhamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kunalkhamar/subscriptions","organizations_url":"https://api.github.com/users/kunalkhamar/orgs","repos_url":"https://api.github.com/users/kunalkhamar/repos","events_url":"https://api.github.com/users/kunalkhamar/events{/privacy}","received_events_url":"https://api.github.com/users/kunalkhamar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-02-06T23:25:35Z","updated_at":"2017-02-10T02:55:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/16826","html_url":"https://github.com/apache/spark/pull/16826","diff_url":"https://github.com/apache/spark/pull/16826.diff","patch_url":"https://github.com/apache/spark/pull/16826.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nForking a newSession() from SparkSession currently makes a new SparkSession that does not retain SessionState (i.e. temporary tables, SQL config, registered functions etc.) This change adds a method cloneSession() which creates a new SparkSession with a copy of the parent's SessionState.\r\n\r\nSubsequent changes to base session are not propagated to cloned session, clone is independent after creation.\r\nIf the base is changed after clone has been created, say user registers new UDF, then the new UDF will not be available inside the clone. Same goes for configs and temp tables.\r\n\r\n## How was this patch tested?\r\n\r\nUnit tests"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/278844304","html_url":"https://github.com/apache/spark/pull/16826#issuecomment-278844304","issue_url":"https://api.github.com/repos/apache/spark/issues/16826","id":278844304,"user":{"login":"AmplabJenkins","id":4031291,"avatar_url":"https://avatars.githubusercontent.com/u/4031291?v=3","gravatar_id":"","url":"https://api.github.com/users/AmplabJenkins","html_url":"https://github.com/AmplabJenkins","followers_url":"https://api.github.com/users/AmplabJenkins/followers","following_url":"https://api.github.com/users/AmplabJenkins/following{/other_user}","gists_url":"https://api.github.com/users/AmplabJenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/AmplabJenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmplabJenkins/subscriptions","organizations_url":"https://api.github.com/users/AmplabJenkins/orgs","repos_url":"https://api.github.com/users/AmplabJenkins/repos","events_url":"https://api.github.com/users/AmplabJenkins/events{/privacy}","received_events_url":"https://api.github.com/users/AmplabJenkins/received_events","type":"User","site_admin":false},"created_at":"2017-02-10T02:55:04Z","updated_at":"2017-02-10T02:55:04Z","body":"Merged build finished. Test FAILed."}}
{"actor":{"display_login":"AmplabJenkins"}}