{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/4707","labels_url":"https://api.github.com/repos/apache/spark/issues/4707/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/4707/comments","events_url":"https://api.github.com/repos/apache/spark/issues/4707/events","html_url":"https://github.com/apache/spark/pull/4707","id":58392839,"number":4707,"title":"[SPARK-5926] [SQL] make DataFrame.explain leverage queryExecution.logical","user":{"login":"yanboliang","id":1962026,"avatar_url":"https://avatars.githubusercontent.com/u/1962026?v=3","gravatar_id":"","url":"https://api.github.com/users/yanboliang","html_url":"https://github.com/yanboliang","followers_url":"https://api.github.com/users/yanboliang/followers","following_url":"https://api.github.com/users/yanboliang/following{/other_user}","gists_url":"https://api.github.com/users/yanboliang/gists{/gist_id}","starred_url":"https://api.github.com/users/yanboliang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanboliang/subscriptions","organizations_url":"https://api.github.com/users/yanboliang/orgs","repos_url":"https://api.github.com/users/yanboliang/repos","events_url":"https://api.github.com/users/yanboliang/events{/privacy}","received_events_url":"https://api.github.com/users/yanboliang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-20T18:39:39Z","updated_at":"2015-02-21T07:20:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/4707","html_url":"https://github.com/apache/spark/pull/4707","diff_url":"https://github.com/apache/spark/pull/4707.diff","patch_url":"https://github.com/apache/spark/pull/4707.patch"},"body":"DataFrame.explain return wrong result when the query is DDL command.\r\n\r\nFor example, the following two queries should print out the same execution plan, but it not.\r\nsql(\"create table tb as select * from src where key > 490\").explain(true)\r\nsql(\"explain extended create table tb as select * from src where key > 490\")\r\n\r\nThis is because DataFrame.explain leverage logicalPlan which had been forced executed, we should use  the unexecuted plan queryExecution.logical."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/75360142","html_url":"https://github.com/apache/spark/pull/4707#issuecomment-75360142","issue_url":"https://api.github.com/repos/apache/spark/issues/4707","id":75360142,"user":{"login":"rxin","id":323388,"avatar_url":"https://avatars.githubusercontent.com/u/323388?v=3","gravatar_id":"","url":"https://api.github.com/users/rxin","html_url":"https://github.com/rxin","followers_url":"https://api.github.com/users/rxin/followers","following_url":"https://api.github.com/users/rxin/following{/other_user}","gists_url":"https://api.github.com/users/rxin/gists{/gist_id}","starred_url":"https://api.github.com/users/rxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxin/subscriptions","organizations_url":"https://api.github.com/users/rxin/orgs","repos_url":"https://api.github.com/users/rxin/repos","events_url":"https://api.github.com/users/rxin/events{/privacy}","received_events_url":"https://api.github.com/users/rxin/received_events","type":"User","site_admin":false},"created_at":"2015-02-21T07:20:57Z","updated_at":"2015-02-21T07:20:57Z","body":"Jenkins, test this please."}}