{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/14148","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/14148/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/14148/comments","events_url":"https://api.github.com/repos/apache/spark/issues/14148/events","html_url":"https://github.com/apache/spark/pull/14148","id":164989862,"number":14148,"title":"[SPARK-16482] [SQL] Describe Table Command for Tables Requiring Runtime Inferred Schema ","user":{"login":"gatorsmile","id":11567269,"avatar_url":"https://avatars.githubusercontent.com/u/11567269?v=3","gravatar_id":"","url":"https://api.github.com/users/gatorsmile","html_url":"https://github.com/gatorsmile","followers_url":"https://api.github.com/users/gatorsmile/followers","following_url":"https://api.github.com/users/gatorsmile/following{/other_user}","gists_url":"https://api.github.com/users/gatorsmile/gists{/gist_id}","starred_url":"https://api.github.com/users/gatorsmile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gatorsmile/subscriptions","organizations_url":"https://api.github.com/users/gatorsmile/orgs","repos_url":"https://api.github.com/users/gatorsmile/repos","events_url":"https://api.github.com/users/gatorsmile/events{/privacy}","received_events_url":"https://api.github.com/users/gatorsmile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-12T04:03:40Z","updated_at":"2016-07-12T07:14:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/14148","html_url":"https://github.com/apache/spark/pull/14148","diff_url":"https://github.com/apache/spark/pull/14148.diff","patch_url":"https://github.com/apache/spark/pull/14148.patch"},"body":"#### What changes were proposed in this pull request?\r\nIf we create a table pointing to a parquet/json datasets without specifying the schema, describe table command does not show the schema at all. It only shows `# Schema of this table is inferred at runtime`. In 1.6, describe table does show the schema of such a table.\r\n\r\n~~For data source tables, to infer the schema, we need to load the data source tables at runtime. Thus, this PR calls the function `lookupRelation`.~~\r\n\r\nFor data source tables, we infer the schema before table creation. Thus, this PR set the inferred schema as the table schema when table creation.\r\n\r\n#### How was this patch tested?\r\nAdded test cases"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/231956980","html_url":"https://github.com/apache/spark/pull/14148#issuecomment-231956980","issue_url":"https://api.github.com/repos/apache/spark/issues/14148","id":231956980,"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-07-12T07:14:46Z","updated_at":"2016-07-12T07:14:46Z","body":"Test FAILed.\nRefer to this link for build results (access rights to CI server needed): \nhttps://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/62144/\nTest FAILed."}}
{"actor":{"display_login":"AmplabJenkins"}}