{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/15996","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/15996/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/15996/comments","events_url":"https://api.github.com/repos/apache/spark/issues/15996/events","html_url":"https://github.com/apache/spark/pull/15996","id":191343950,"number":15996,"title":"[SPARK-18567][SQL] Simplify CreateDataSourceTableAsSelectCommand","user":{"login":"cloud-fan","id":3182036,"avatar_url":"https://avatars.githubusercontent.com/u/3182036?v=3","gravatar_id":"","url":"https://api.github.com/users/cloud-fan","html_url":"https://github.com/cloud-fan","followers_url":"https://api.github.com/users/cloud-fan/followers","following_url":"https://api.github.com/users/cloud-fan/following{/other_user}","gists_url":"https://api.github.com/users/cloud-fan/gists{/gist_id}","starred_url":"https://api.github.com/users/cloud-fan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloud-fan/subscriptions","organizations_url":"https://api.github.com/users/cloud-fan/orgs","repos_url":"https://api.github.com/users/cloud-fan/repos","events_url":"https://api.github.com/users/cloud-fan/events{/privacy}","received_events_url":"https://api.github.com/users/cloud-fan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2016-11-23T18:04:50Z","updated_at":"2016-12-28T07:45:10Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/15996","html_url":"https://github.com/apache/spark/pull/15996","diff_url":"https://github.com/apache/spark/pull/15996.diff","patch_url":"https://github.com/apache/spark/pull/15996.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nThe `CreateDataSourceTableAsSelectCommand` is quite complex now, as it has a lot of work to do if the table already exists:\r\n\r\n1. throw exception if we don't want to ignore it.\r\n2. do some check and adjust the schema if we want to append data.\r\n3. drop the table and create it again if we want to overwrite.\r\n\r\nThe work 2 and 3 should be done by analyzer, so that we can also apply it to hive tables.\r\n\r\n## How was this patch tested?\r\n\r\nexisting tests."},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/269439545","html_url":"https://github.com/apache/spark/pull/15996#issuecomment-269439545","issue_url":"https://api.github.com/repos/apache/spark/issues/15996","id":269439545,"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-12-28T07:45:10Z","updated_at":"2016-12-28T07:45:10Z","body":"**[Test build #70654 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/70654/testReport)** for PR 15996 at commit [`7f8d8c9`](https://github.com/apache/spark/commit/7f8d8c9f8f62d46094d4c66dff5ebc4de1b4b2de).\n * This patch passes all tests.\n * This patch merges cleanly.\n * This patch adds no public classes."}}
{"actor":{"display_login":"SparkQA"}}