{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/12947","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/12947/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/12947/comments","events_url":"https://api.github.com/repos/apache/spark/issues/12947/events","html_url":"https://github.com/apache/spark/pull/12947","id":153378102,"number":12947,"title":"[SPARK-14476][SQL] Improve the physical plan visualization by adding meta info like table name and file path for data source.","user":{"login":"clockfly","id":2595532,"avatar_url":"https://avatars.githubusercontent.com/u/2595532?v=3","gravatar_id":"","url":"https://api.github.com/users/clockfly","html_url":"https://github.com/clockfly","followers_url":"https://api.github.com/users/clockfly/followers","following_url":"https://api.github.com/users/clockfly/following{/other_user}","gists_url":"https://api.github.com/users/clockfly/gists{/gist_id}","starred_url":"https://api.github.com/users/clockfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clockfly/subscriptions","organizations_url":"https://api.github.com/users/clockfly/orgs","repos_url":"https://api.github.com/users/clockfly/repos","events_url":"https://api.github.com/users/clockfly/events{/privacy}","received_events_url":"https://api.github.com/users/clockfly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-05-06T04:57:29Z","updated_at":"2016-05-10T03:20:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/12947","html_url":"https://github.com/apache/spark/pull/12947","diff_url":"https://github.com/apache/spark/pull/12947.diff","patch_url":"https://github.com/apache/spark/pull/12947.patch"},"body":"## What changes were proposed in this pull request?\r\nImprove the physical plan visualization by adding meta info like table name and file path for data source. \r\n\r\nMeta info InputPaths and TableName are newly added. Example: \r\n```\r\nscala> spark.range(10).write.saveAsTable(\"tt\")\r\nscala> spark.sql(\"select * from tt\").explain()\r\n== Physical Plan ==\r\nWholeStageCodegen\r\n:  +- BatchedScan HadoopFiles[id#13L] Format: ParquetFormat, InputPaths: file:/home/xzhong10/spark-linux/assembly/spark-warehouse/tt, PushedFilters: [], ReadSchema: struct<id:bigint>, TableName: default.tt\r\n```\r\n\r\n## How was this patch tested?\r\n\r\nmanual tests.\r\n\r\nChanges for UI:\r\nBefore:\r\n![ui_before_change](https://cloud.githubusercontent.com/assets/2595532/15064559/3d423e3c-1388-11e6-8099-7803ef496c4d.jpg)\r\n\r\nAfter:\r\n![fix_long_string](https://cloud.githubusercontent.com/assets/2595532/15133566/8ad09e26-1696-11e6-939c-99b908249b9d.jpg)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/218049358","html_url":"https://github.com/apache/spark/pull/12947#issuecomment-218049358","issue_url":"https://api.github.com/repos/apache/spark/issues/12947","id":218049358,"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-05-10T03:20:31Z","updated_at":"2016-05-10T03:20:31Z","body":"Merged build finished. Test PASSed."}}