{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/20795","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/20795/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/20795/comments","events_url":"https://api.github.com/repos/apache/spark/issues/20795/events","html_url":"https://github.com/apache/spark/pull/20795","id":304136027,"number":20795,"title":"[SPARK-23486]cache the function name from the catalog for lookupFunctions","user":{"login":"kevinyu98","id":7550280,"avatar_url":"https://avatars3.githubusercontent.com/u/7550280?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinyu98","html_url":"https://github.com/kevinyu98","followers_url":"https://api.github.com/users/kevinyu98/followers","following_url":"https://api.github.com/users/kevinyu98/following{/other_user}","gists_url":"https://api.github.com/users/kevinyu98/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinyu98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinyu98/subscriptions","organizations_url":"https://api.github.com/users/kevinyu98/orgs","repos_url":"https://api.github.com/users/kevinyu98/repos","events_url":"https://api.github.com/users/kevinyu98/events{/privacy}","received_events_url":"https://api.github.com/users/kevinyu98/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2018-03-11T07:03:08Z","updated_at":"2018-03-26T07:38:02Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/20795","html_url":"https://github.com/apache/spark/pull/20795","diff_url":"https://github.com/apache/spark/pull/20795.diff","patch_url":"https://github.com/apache/spark/pull/20795.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThis PR will cache the function name from spark and external catalog, it is used by lookupFunctions in the analyzer, and it is cached for each query plan. The original problem is reported in the [ spark-19737](https://issues.apache.org/jira/browse/SPARK-19737) \r\n\r\n## How was this patch tested?\r\n\r\nI did unit testing on local machine, it shows that the cache will be used if there multiple same functions in the same query. But I am not sure how I can add a test case into spark, can you advice? thanks."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/376073563","html_url":"https://github.com/apache/spark/pull/20795#issuecomment-376073563","issue_url":"https://api.github.com/repos/apache/spark/issues/20795","id":376073563,"user":{"login":"SparkQA","id":8108735,"avatar_url":"https://avatars1.githubusercontent.com/u/8108735?v=4","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":"2018-03-26T07:38:02Z","updated_at":"2018-03-26T07:38:02Z","author_association":"NONE","body":"**[Test build #88580 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/88580/testReport)** for PR 20795 at commit [`029ee6c`](https://github.com/apache/spark/commit/029ee6cf14e3cde33d577672f0ca46941991948c)."}}
{"actor":{"display_login":"SparkQA"}}