{"action":"opened","number":36,"pull_request":{"url":"https://api.github.com/repos/databricks/spark-redshift/pulls/36","id":41386773,"html_url":"https://github.com/databricks/spark-redshift/pull/36","diff_url":"https://github.com/databricks/spark-redshift/pull/36.diff","patch_url":"https://github.com/databricks/spark-redshift/pull/36.patch","issue_url":"https://api.github.com/repos/databricks/spark-redshift/issues/36","number":36,"state":"open","locked":false,"title":"Bug fixes and auto testing of Redshift data source","user":{"login":"kai-zeng","id":8623633,"avatar_url":"https://avatars.githubusercontent.com/u/8623633?v=3","gravatar_id":"","url":"https://api.github.com/users/kai-zeng","html_url":"https://github.com/kai-zeng","followers_url":"https://api.github.com/users/kai-zeng/followers","following_url":"https://api.github.com/users/kai-zeng/following{/other_user}","gists_url":"https://api.github.com/users/kai-zeng/gists{/gist_id}","starred_url":"https://api.github.com/users/kai-zeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kai-zeng/subscriptions","organizations_url":"https://api.github.com/users/kai-zeng/orgs","repos_url":"https://api.github.com/users/kai-zeng/repos","events_url":"https://api.github.com/users/kai-zeng/events{/privacy}","received_events_url":"https://api.github.com/users/kai-zeng/received_events","type":"User","site_admin":false},"body":"Major changes:\r\n(1) Configuring aws access key pairs: The previous implementation is not consistent on the aws access key pairs used in unloading and reading data. This PR fixes this bug. \r\nNow the aws access key pair is configured in this priority order:\r\n<1> If the 'tempdir' option encodes the aws access key pair. That key pair is used.\r\n<2> Otherwise, we use the aws key pair specified in the hadoop configuration of the spark context.\r\n\r\n(2) Automating the test. We set up a redshift server for this test, and encode the security information using Travis.\r\n\r\n(3) Auto convert column names to lower cases as Redshift COPY only supports lowercase column names.\r\n\r\n(4) Other miscellaneous fixes.","created_at":"2015-07-31T22:24:13Z","updated_at":"2015-07-31T22:24:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/databricks/spark-redshift/pulls/36/commits","review_comments_url":"https://api.github.com/repos/databricks/spark-redshift/pulls/36/comments","review_comment_url":"https://api.github.com/repos/databricks/spark-redshift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/databricks/spark-redshift/issues/36/comments","statuses_url":"https://api.github.com/repos/databricks/spark-redshift/statuses/c9593371f3d0d861b7e9c433e7a8e540ea4657eb","head":{"label":"databricks:redshift-test","ref":"redshift-test","sha":"c9593371f3d0d861b7e9c433e7a8e540ea4657eb","user":{"login":"databricks","id":4998052,"avatar_url":"https://avatars.githubusercontent.com/u/4998052?v=3","gravatar_id":"","url":"https://api.github.com/users/databricks","html_url":"https://github.com/databricks","followers_url":"https://api.github.com/users/databricks/followers","following_url":"https://api.github.com/users/databricks/following{/other_user}","gists_url":"https://api.github.com/users/databricks/gists{/gist_id}","starred_url":"https://api.github.com/users/databricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/databricks/subscriptions","organizations_url":"https://api.github.com/users/databricks/orgs","repos_url":"https://api.github.com/users/databricks/repos","events_url":"https://api.github.com/users/databricks/events{/privacy}","received_events_url":"https://api.github.com/users/databricks/received_events","type":"Organization","site_admin":false},"repo":{"id":26562411,"name":"spark-redshift","full_name":"databricks/spark-redshift","owner":{"login":"databricks","id":4998052,"avatar_url":"https://avatars.githubusercontent.com/u/4998052?v=3","gravatar_id":"","url":"https://api.github.com/users/databricks","html_url":"https://github.com/databricks","followers_url":"https://api.github.com/users/databricks/followers","following_url":"https://api.github.com/users/databricks/following{/other_user}","gists_url":"https://api.github.com/users/databricks/gists{/gist_id}","starred_url":"https://api.github.com/users/databricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/databricks/subscriptions","organizations_url":"https://api.github.com/users/databricks/orgs","repos_url":"https://api.github.com/users/databricks/repos","events_url":"https://api.github.com/users/databricks/events{/privacy}","received_events_url":"https://api.github.com/users/databricks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/databricks/spark-redshift","description":"Spark and Redshift integration","fork":false,"url":"https://api.github.com/repos/databricks/spark-redshift","forks_url":"https://api.github.com/repos/databricks/spark-redshift/forks","keys_url":"https://api.github.com/repos/databricks/spark-redshift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/databricks/spark-redshift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/databricks/spark-redshift/teams","hooks_url":"https://api.github.com/repos/databricks/spark-redshift/hooks","issue_events_url":"https://api.github.com/repos/databricks/spark-redshift/issues/events{/number}","events_url":"https://api.github.com/repos/databricks/spark-redshift/events","assignees_url":"https://api.github.com/repos/databricks/spark-redshift/assignees{/user}","branches_url":"https://api.github.com/repos/databricks/spark-redshift/branches{/branch}","tags_url":"https://api.github.com/repos/databricks/spark-redshift/tags","blobs_url":"https://api.github.com/repos/databricks/spark-redshift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/databricks/spark-redshift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/databricks/spark-redshift/git/refs{/sha}","trees_url":"https://api.github.com/repos/databricks/spark-redshift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/databricks/spark-redshift/statuses/{sha}","languages_url":"https://api.github.com/repos/databricks/spark-redshift/languages","stargazers_url":"https://api.github.com/repos/databricks/spark-redshift/stargazers","contributors_url":"https://api.github.com/repos/databricks/spark-redshift/contributors","subscribers_url":"https://api.github.com/repos/databricks/spark-redshift/subscribers","subscription_url":"https://api.github.com/repos/databricks/spark-redshift/subscription","commits_url":"https://api.github.com/repos/databricks/spark-redshift/commits{/sha}","git_commits_url":"https://api.github.com/repos/databricks/spark-redshift/git/commits{/sha}","comments_url":"https://api.github.com/repos/databricks/spark-redshift/comments{/number}","issue_comment_url":"https://api.github.com/repos/databricks/spark-redshift/issues/comments{/number}","contents_url":"https://api.github.com/repos/databricks/spark-redshift/contents/{+path}","compare_url":"https://api.github.com/repos/databricks/spark-redshift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/databricks/spark-redshift/merges","archive_url":"https://api.github.com/repos/databricks/spark-redshift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/databricks/spark-redshift/downloads","issues_url":"https://api.github.com/repos/databricks/spark-redshift/issues{/number}","pulls_url":"https://api.github.com/repos/databricks/spark-redshift/pulls{/number}","milestones_url":"https://api.github.com/repos/databricks/spark-redshift/milestones{/number}","notifications_url":"https://api.github.com/repos/databricks/spark-redshift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/databricks/spark-redshift/labels{/name}","releases_url":"https://api.github.com/repos/databricks/spark-redshift/releases{/id}","created_at":"2014-11-13T00:08:13Z","updated_at":"2015-07-31T05:38:37Z","pushed_at":"2015-07-31T22:09:31Z","git_url":"git://github.com/databricks/spark-redshift.git","ssh_url":"git@github.com:databricks/spark-redshift.git","clone_url":"https://github.com/databricks/spark-redshift.git","svn_url":"https://github.com/databricks/spark-redshift","homepage":null,"size":582,"stargazers_count":56,"watchers_count":56,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":13,"forks":20,"open_issues":13,"watchers":56,"default_branch":"master"}},"base":{"label":"databricks:master","ref":"master","sha":"765d7dcbdfa2ebc3098f53ebfab13573284a6fbc","user":{"login":"databricks","id":4998052,"avatar_url":"https://avatars.githubusercontent.com/u/4998052?v=3","gravatar_id":"","url":"https://api.github.com/users/databricks","html_url":"https://github.com/databricks","followers_url":"https://api.github.com/users/databricks/followers","following_url":"https://api.github.com/users/databricks/following{/other_user}","gists_url":"https://api.github.com/users/databricks/gists{/gist_id}","starred_url":"https://api.github.com/users/databricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/databricks/subscriptions","organizations_url":"https://api.github.com/users/databricks/orgs","repos_url":"https://api.github.com/users/databricks/repos","events_url":"https://api.github.com/users/databricks/events{/privacy}","received_events_url":"https://api.github.com/users/databricks/received_events","type":"Organization","site_admin":false},"repo":{"id":26562411,"name":"spark-redshift","full_name":"databricks/spark-redshift","owner":{"login":"databricks","id":4998052,"avatar_url":"https://avatars.githubusercontent.com/u/4998052?v=3","gravatar_id":"","url":"https://api.github.com/users/databricks","html_url":"https://github.com/databricks","followers_url":"https://api.github.com/users/databricks/followers","following_url":"https://api.github.com/users/databricks/following{/other_user}","gists_url":"https://api.github.com/users/databricks/gists{/gist_id}","starred_url":"https://api.github.com/users/databricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/databricks/subscriptions","organizations_url":"https://api.github.com/users/databricks/orgs","repos_url":"https://api.github.com/users/databricks/repos","events_url":"https://api.github.com/users/databricks/events{/privacy}","received_events_url":"https://api.github.com/users/databricks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/databricks/spark-redshift","description":"Spark and Redshift integration","fork":false,"url":"https://api.github.com/repos/databricks/spark-redshift","forks_url":"https://api.github.com/repos/databricks/spark-redshift/forks","keys_url":"https://api.github.com/repos/databricks/spark-redshift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/databricks/spark-redshift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/databricks/spark-redshift/teams","hooks_url":"https://api.github.com/repos/databricks/spark-redshift/hooks","issue_events_url":"https://api.github.com/repos/databricks/spark-redshift/issues/events{/number}","events_url":"https://api.github.com/repos/databricks/spark-redshift/events","assignees_url":"https://api.github.com/repos/databricks/spark-redshift/assignees{/user}","branches_url":"https://api.github.com/repos/databricks/spark-redshift/branches{/branch}","tags_url":"https://api.github.com/repos/databricks/spark-redshift/tags","blobs_url":"https://api.github.com/repos/databricks/spark-redshift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/databricks/spark-redshift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/databricks/spark-redshift/git/refs{/sha}","trees_url":"https://api.github.com/repos/databricks/spark-redshift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/databricks/spark-redshift/statuses/{sha}","languages_url":"https://api.github.com/repos/databricks/spark-redshift/languages","stargazers_url":"https://api.github.com/repos/databricks/spark-redshift/stargazers","contributors_url":"https://api.github.com/repos/databricks/spark-redshift/contributors","subscribers_url":"https://api.github.com/repos/databricks/spark-redshift/subscribers","subscription_url":"https://api.github.com/repos/databricks/spark-redshift/subscription","commits_url":"https://api.github.com/repos/databricks/spark-redshift/commits{/sha}","git_commits_url":"https://api.github.com/repos/databricks/spark-redshift/git/commits{/sha}","comments_url":"https://api.github.com/repos/databricks/spark-redshift/comments{/number}","issue_comment_url":"https://api.github.com/repos/databricks/spark-redshift/issues/comments{/number}","contents_url":"https://api.github.com/repos/databricks/spark-redshift/contents/{+path}","compare_url":"https://api.github.com/repos/databricks/spark-redshift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/databricks/spark-redshift/merges","archive_url":"https://api.github.com/repos/databricks/spark-redshift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/databricks/spark-redshift/downloads","issues_url":"https://api.github.com/repos/databricks/spark-redshift/issues{/number}","pulls_url":"https://api.github.com/repos/databricks/spark-redshift/pulls{/number}","milestones_url":"https://api.github.com/repos/databricks/spark-redshift/milestones{/number}","notifications_url":"https://api.github.com/repos/databricks/spark-redshift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/databricks/spark-redshift/labels{/name}","releases_url":"https://api.github.com/repos/databricks/spark-redshift/releases{/id}","created_at":"2014-11-13T00:08:13Z","updated_at":"2015-07-31T05:38:37Z","pushed_at":"2015-07-31T22:09:31Z","git_url":"git://github.com/databricks/spark-redshift.git","ssh_url":"git@github.com:databricks/spark-redshift.git","clone_url":"https://github.com/databricks/spark-redshift.git","svn_url":"https://github.com/databricks/spark-redshift","homepage":null,"size":582,"stargazers_count":56,"watchers_count":56,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":13,"forks":20,"open_issues":13,"watchers":56,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/databricks/spark-redshift/pulls/36"},"html":{"href":"https://github.com/databricks/spark-redshift/pull/36"},"issue":{"href":"https://api.github.com/repos/databricks/spark-redshift/issues/36"},"comments":{"href":"https://api.github.com/repos/databricks/spark-redshift/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/databricks/spark-redshift/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/databricks/spark-redshift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/databricks/spark-redshift/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/databricks/spark-redshift/statuses/c9593371f3d0d861b7e9c433e7a8e540ea4657eb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":784,"deletions":263,"changed_files":18}}