{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12036","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12036/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12036/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12036/events","html_url":"https://github.com/apache/spark/pull/12036","id":144251470,"number":12036,"title":"[SPARK-14123][SQL] Implement function related DDL commands","user":{"login":"viirya","id":68855,"avatar_url":"https://avatars.githubusercontent.com/u/68855?v=3","gravatar_id":"","url":"https://api.github.com/users/viirya","html_url":"https://github.com/viirya","followers_url":"https://api.github.com/users/viirya/followers","following_url":"https://api.github.com/users/viirya/following{/other_user}","gists_url":"https://api.github.com/users/viirya/gists{/gist_id}","starred_url":"https://api.github.com/users/viirya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viirya/subscriptions","organizations_url":"https://api.github.com/users/viirya/orgs","repos_url":"https://api.github.com/users/viirya/repos","events_url":"https://api.github.com/users/viirya/events{/privacy}","received_events_url":"https://api.github.com/users/viirya/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2016-03-29T12:33:31Z","updated_at":"2016-03-31T12:01:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12036","html_url":"https://github.com/apache/spark/pull/12036","diff_url":"https://github.com/apache/spark/pull/12036.diff","patch_url":"https://github.com/apache/spark/pull/12036.patch"},"body":"## What changes were proposed in this pull request?\r\nJIRA: https://issues.apache.org/jira/browse/SPARK-14123\r\n\r\nThis PR adds the support of native DDL commands to create and drop (temporary) functions.\r\n\r\nFor temporary function, these DDL commands call `FunctionRegistry` related APIs. This PR modifies current `FunctionRegistry` and `HiveFunctionRegistry` APIs to have proper temporary function support.\r\n\r\nFor permanent function, we will look up the function through catalog API and get `CatalogFunction` if the function exists. Then we will load necessary resources such as JARs, Files. Once the resources are loaded, we can create `FunctionBuilder` for it and generate an `Expression`.\r\n\r\n## How was this patch tested?\r\nExisting tests.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/203899215","html_url":"https://github.com/apache/spark/pull/12036#issuecomment-203899215","issue_url":"https://api.github.com/repos/apache/spark/issues/12036","id":203899215,"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-31T12:01:36Z","updated_at":"2016-03-31T12:01:36Z","body":"**[Test build #54617 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/54617/consoleFull)** for PR 12036 at commit [`65d9dbd`](https://github.com/apache/spark/commit/65d9dbdfbb26c0a1e917767aae08f73df4f9763c).\n * This patch passes all tests.\n * This patch merges cleanly.\n * This patch adds no public classes."}}