{"action":"created","comment":{"url":"https://api.github.com/repos/databricks/spark-redshift/pulls/comments/74107878","id":74107878,"diff_hunk":"@@ -179,7 +179,12 @@ private[redshift] case class RedshiftRelation(\n     // the credentials passed via `credsString`.\n     val fixedUrl = Utils.fixS3Url(Utils.removeCredentialsFromURI(new URI(tempDir)).toString)\n \n-    s\"UNLOAD ('$query') TO '$fixedUrl' WITH CREDENTIALS '$credsString' ESCAPE MANIFEST\"\n+    val userUnloadOptions = params.parameters.getOrElse(\"extraunloadoptions\", \"\").toUpperCase()","path":"src/main/scala/com/databricks/spark/redshift/RedshiftRelation.scala","position":5,"original_position":5,"commit_id":"db23f37e844f2a3d39fc49db8e361c1598a07872","original_commit_id":"db23f37e844f2a3d39fc49db8e361c1598a07872","user":{"login":"JoshRosen","id":50748,"avatar_url":"https://avatars.githubusercontent.com/u/50748?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshRosen","html_url":"https://github.com/JoshRosen","followers_url":"https://api.github.com/users/JoshRosen/followers","following_url":"https://api.github.com/users/JoshRosen/following{/other_user}","gists_url":"https://api.github.com/users/JoshRosen/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshRosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshRosen/subscriptions","organizations_url":"https://api.github.com/users/JoshRosen/orgs","repos_url":"https://api.github.com/users/JoshRosen/repos","events_url":"https://api.github.com/users/JoshRosen/events{/privacy}","received_events_url":"https://api.github.com/users/JoshRosen/received_events","type":"User","site_admin":false},"body":"For example, what if you wanted the delimiter to be a lowercase-character?","created_at":"2016-08-09T17:44:38Z","updated_at":"2016-08-09T17:44:38Z","html_url":"https://github.com/databricks/spark-redshift/pull/218#discussion_r74107878","pull_request_url":"https://api.github.com/repos/databricks/spark-redshift/pulls/218","_links":{"self":{"href":"https://api.github.com/repos/databricks/spark-redshift/pulls/comments/74107878"},"html":{"href":"https://github.com/databricks/spark-redshift/pull/218#discussion_r74107878"},"pull_request":{"href":"https://api.github.com/repos/databricks/spark-redshift/pulls/218"}}},"pull_request":{"url":"https://api.github.com/repos/databricks/spark-redshift/pulls/218","id":74809490,"html_url":"https://github.com/databricks/spark-redshift/pull/218","diff_url":"https://github.com/databricks/spark-redshift/pull/218.diff","patch_url":"https://github.com/databricks/spark-redshift/pull/218.patch","issue_url":"https://api.github.com/repos/databricks/spark-redshift/issues/218","number":218,"state":"open","locked":false,"title":"Specify extra unloadoptions","user":{"login":"smallcrew","id":1769003,"avatar_url":"https://avatars.githubusercontent.com/u/1769003?v=3","gravatar_id":"","url":"https://api.github.com/users/smallcrew","html_url":"https://github.com/smallcrew","followers_url":"https://api.github.com/users/smallcrew/followers","following_url":"https://api.github.com/users/smallcrew/following{/other_user}","gists_url":"https://api.github.com/users/smallcrew/gists{/gist_id}","starred_url":"https://api.github.com/users/smallcrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smallcrew/subscriptions","organizations_url":"https://api.github.com/users/smallcrew/orgs","repos_url":"https://api.github.com/users/smallcrew/repos","events_url":"https://api.github.com/users/smallcrew/events{/privacy}","received_events_url":"https://api.github.com/users/smallcrew/received_events","type":"User","site_admin":false},"body":"Allow user to specify unload options like a custom delimiter for example\r\nBy default, \"manifest\" and \"escape\" options are always set\r\n\r\nExample:\r\n`.option(\"extraunloadoptions\", \"DELIMITER ','\")`","created_at":"2016-06-22T15:52:35Z","updated_at":"2016-08-09T17:44:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91cb835cb19b29ea8be8ddc9a7064f7fc6904ed0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/databricks/spark-redshift/pulls/218/commits","review_comments_url":"https://api.github.com/repos/databricks/spark-redshift/pulls/218/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/218/comments","statuses_url":"https://api.github.com/repos/databricks/spark-redshift/statuses/db23f37e844f2a3d39fc49db8e361c1598a07872","head":{"label":"viadeo:unload_options","ref":"unload_options","sha":"db23f37e844f2a3d39fc49db8e361c1598a07872","user":{"login":"viadeo","id":1155215,"avatar_url":"https://avatars.githubusercontent.com/u/1155215?v=3","gravatar_id":"","url":"https://api.github.com/users/viadeo","html_url":"https://github.com/viadeo","followers_url":"https://api.github.com/users/viadeo/followers","following_url":"https://api.github.com/users/viadeo/following{/other_user}","gists_url":"https://api.github.com/users/viadeo/gists{/gist_id}","starred_url":"https://api.github.com/users/viadeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viadeo/subscriptions","organizations_url":"https://api.github.com/users/viadeo/orgs","repos_url":"https://api.github.com/users/viadeo/repos","events_url":"https://api.github.com/users/viadeo/events{/privacy}","received_events_url":"https://api.github.com/users/viadeo/received_events","type":"Organization","site_admin":false},"repo":{"id":61225221,"name":"spark-redshift","full_name":"viadeo/spark-redshift","owner":{"login":"viadeo","id":1155215,"avatar_url":"https://avatars.githubusercontent.com/u/1155215?v=3","gravatar_id":"","url":"https://api.github.com/users/viadeo","html_url":"https://github.com/viadeo","followers_url":"https://api.github.com/users/viadeo/followers","following_url":"https://api.github.com/users/viadeo/following{/other_user}","gists_url":"https://api.github.com/users/viadeo/gists{/gist_id}","starred_url":"https://api.github.com/users/viadeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viadeo/subscriptions","organizations_url":"https://api.github.com/users/viadeo/orgs","repos_url":"https://api.github.com/users/viadeo/repos","events_url":"https://api.github.com/users/viadeo/events{/privacy}","received_events_url":"https://api.github.com/users/viadeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/viadeo/spark-redshift","description":"Redshift data source for Spark","fork":true,"url":"https://api.github.com/repos/viadeo/spark-redshift","forks_url":"https://api.github.com/repos/viadeo/spark-redshift/forks","keys_url":"https://api.github.com/repos/viadeo/spark-redshift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/viadeo/spark-redshift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/viadeo/spark-redshift/teams","hooks_url":"https://api.github.com/repos/viadeo/spark-redshift/hooks","issue_events_url":"https://api.github.com/repos/viadeo/spark-redshift/issues/events{/number}","events_url":"https://api.github.com/repos/viadeo/spark-redshift/events","assignees_url":"https://api.github.com/repos/viadeo/spark-redshift/assignees{/user}","branches_url":"https://api.github.com/repos/viadeo/spark-redshift/branches{/branch}","tags_url":"https://api.github.com/repos/viadeo/spark-redshift/tags","blobs_url":"https://api.github.com/repos/viadeo/spark-redshift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/viadeo/spark-redshift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/viadeo/spark-redshift/git/refs{/sha}","trees_url":"https://api.github.com/repos/viadeo/spark-redshift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/viadeo/spark-redshift/statuses/{sha}","languages_url":"https://api.github.com/repos/viadeo/spark-redshift/languages","stargazers_url":"https://api.github.com/repos/viadeo/spark-redshift/stargazers","contributors_url":"https://api.github.com/repos/viadeo/spark-redshift/contributors","subscribers_url":"https://api.github.com/repos/viadeo/spark-redshift/subscribers","subscription_url":"https://api.github.com/repos/viadeo/spark-redshift/subscription","commits_url":"https://api.github.com/repos/viadeo/spark-redshift/commits{/sha}","git_commits_url":"https://api.github.com/repos/viadeo/spark-redshift/git/commits{/sha}","comments_url":"https://api.github.com/repos/viadeo/spark-redshift/comments{/number}","issue_comment_url":"https://api.github.com/repos/viadeo/spark-redshift/issues/comments{/number}","contents_url":"https://api.github.com/repos/viadeo/spark-redshift/contents/{+path}","compare_url":"https://api.github.com/repos/viadeo/spark-redshift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/viadeo/spark-redshift/merges","archive_url":"https://api.github.com/repos/viadeo/spark-redshift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/viadeo/spark-redshift/downloads","issues_url":"https://api.github.com/repos/viadeo/spark-redshift/issues{/number}","pulls_url":"https://api.github.com/repos/viadeo/spark-redshift/pulls{/number}","milestones_url":"https://api.github.com/repos/viadeo/spark-redshift/milestones{/number}","notifications_url":"https://api.github.com/repos/viadeo/spark-redshift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/viadeo/spark-redshift/labels{/name}","releases_url":"https://api.github.com/repos/viadeo/spark-redshift/releases{/id}","deployments_url":"https://api.github.com/repos/viadeo/spark-redshift/deployments","created_at":"2016-06-15T17:00:38Z","updated_at":"2016-06-15T17:00:39Z","pushed_at":"2016-08-09T08:30:38Z","git_url":"git://github.com/viadeo/spark-redshift.git","ssh_url":"git@github.com:viadeo/spark-redshift.git","clone_url":"https://github.com/viadeo/spark-redshift.git","svn_url":"https://github.com/viadeo/spark-redshift","homepage":"","size":716,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"databricks:master","ref":"master","sha":"a560a2df4f23664c746279999caf3640158b09a8","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":"Redshift data source for Spark","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}","deployments_url":"https://api.github.com/repos/databricks/spark-redshift/deployments","created_at":"2014-11-13T00:08:13Z","updated_at":"2016-08-09T01:31:16Z","pushed_at":"2016-08-09T08:30:39Z","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":"","size":1262,"stargazers_count":219,"watchers_count":219,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":84,"mirror_url":null,"open_issues_count":34,"forks":84,"open_issues":34,"watchers":219,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/databricks/spark-redshift/pulls/218"},"html":{"href":"https://github.com/databricks/spark-redshift/pull/218"},"issue":{"href":"https://api.github.com/repos/databricks/spark-redshift/issues/218"},"comments":{"href":"https://api.github.com/repos/databricks/spark-redshift/issues/218/comments"},"review_comments":{"href":"https://api.github.com/repos/databricks/spark-redshift/pulls/218/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/218/commits"},"statuses":{"href":"https://api.github.com/repos/databricks/spark-redshift/statuses/db23f37e844f2a3d39fc49db8e361c1598a07872"}}}}
{"actor":{"display_login":"JoshRosen"}}