{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/11972","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/11972/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/11972/comments","events_url":"https://api.github.com/repos/apache/spark/issues/11972/events","html_url":"https://github.com/apache/spark/pull/11972","id":143632078,"number":11972,"title":"[SPARK-14013][SQL] Proper temp function support in catalog","user":{"login":"andrewor14","id":2133137,"avatar_url":"https://avatars.githubusercontent.com/u/2133137?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewor14","html_url":"https://github.com/andrewor14","followers_url":"https://api.github.com/users/andrewor14/followers","following_url":"https://api.github.com/users/andrewor14/following{/other_user}","gists_url":"https://api.github.com/users/andrewor14/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewor14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewor14/subscriptions","organizations_url":"https://api.github.com/users/andrewor14/orgs","repos_url":"https://api.github.com/users/andrewor14/repos","events_url":"https://api.github.com/users/andrewor14/events{/privacy}","received_events_url":"https://api.github.com/users/andrewor14/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-26T00:00:37Z","updated_at":"2016-03-29T01:41:12Z","closed_at":"2016-03-28T23:47:00Z","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/11972","html_url":"https://github.com/apache/spark/pull/11972","diff_url":"https://github.com/apache/spark/pull/11972.diff","patch_url":"https://github.com/apache/spark/pull/11972.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nSession catalog was added in #11750. However, it doesn't really support temporary functions properly; right now we only store the metadata in the form of `CatalogFunction`, but this doesn't make sense for temporary functions because there is no class name.\r\n\r\nThis patch moves the `FunctionRegistry` into the `SessionCatalog`. With this, the user can call `catalog.createTempFunction` and `catalog.lookupFunction` to use the function they registered previously. This is currently still dead code, however.\r\n\r\n## How was this patch tested?\r\n\r\n`SessionCatalogSuite`."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/202658625","html_url":"https://github.com/apache/spark/pull/11972#issuecomment-202658625","issue_url":"https://api.github.com/repos/apache/spark/issues/11972","id":202658625,"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":"2016-03-29T01:41:12Z","updated_at":"2016-03-29T01:41:12Z","body":"Merged build finished. Test PASSed."}}