{"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":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-26T00:00:37Z","updated_at":"2016-03-28T23:20:47Z","closed_at":null,"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/202623018","html_url":"https://github.com/apache/spark/pull/11972#issuecomment-202623018","issue_url":"https://api.github.com/repos/apache/spark/issues/11972","id":202623018,"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-03-28T23:20:47Z","updated_at":"2016-03-28T23:20:47Z","body":"**[Test build #54362 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54362/consoleFull)** for PR 11972 at commit [`2f53330`](https://github.com/apache/spark/commit/2f53330f2408183d99f1fca8ba128f11719b6240).\n * This patch passes all tests.\n * This patch merges cleanly.\n * This patch adds no public classes."}}