{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-beam/pulls/comments/81587872","pull_request_review_id":2557017,"id":81587872,"diff_hunk":"@@ -72,21 +71,15 @@ def __init__(self,\n           '%s: file_pattern must be a string;  got %r instead' %\n           (self.__class__.__name__, file_pattern))\n \n-    if compression_type == fileio.CompressionTypes.AUTO:\n-      raise ValueError('FileBasedSource currently does not support '\n-                       'CompressionTypes.AUTO. Please explicitly specify the '\n-                       'compression type or use '\n-                       'CompressionTypes.UNCOMPRESSED if file is '\n-                       'uncompressed.')\n-\n     self._pattern = file_pattern\n     self._concat_source = None\n     self._min_bundle_size = min_bundle_size\n     if not fileio.CompressionTypes.is_valid_compression_type(compression_type):\n       raise TypeError('compression_type must be CompressionType object but '\n                       'was %s' % type(compression_type))\n     self._compression_type = compression_type\n-    if compression_type != fileio.CompressionTypes.UNCOMPRESSED:\n+    if (compression_type != fileio.CompressionTypes.UNCOMPRESSED and\n+        compression_type != fileio.CompressionTypes.AUTO):","path":"sdks/python/apache_beam/io/filebasedsource.py","position":30,"original_position":30,"commit_id":"bba0275c0f6cca179183eaf32dd02db458da1103","original_commit_id":"37aa7a457be0c8bfef0bb5f1b6cc973ead93f7b1","user":{"login":"chamikaramj","id":10819857,"avatar_url":"https://avatars.githubusercontent.com/u/10819857?v=3","gravatar_id":"","url":"https://api.github.com/users/chamikaramj","html_url":"https://github.com/chamikaramj","followers_url":"https://api.github.com/users/chamikaramj/followers","following_url":"https://api.github.com/users/chamikaramj/following{/other_user}","gists_url":"https://api.github.com/users/chamikaramj/gists{/gist_id}","starred_url":"https://api.github.com/users/chamikaramj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamikaramj/subscriptions","organizations_url":"https://api.github.com/users/chamikaramj/orgs","repos_url":"https://api.github.com/users/chamikaramj/repos","events_url":"https://api.github.com/users/chamikaramj/events{/privacy}","received_events_url":"https://api.github.com/users/chamikaramj/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2016-10-03T16:35:26Z","updated_at":"2016-10-03T16:36:01Z","html_url":"https://github.com/apache/incubator-beam/pull/1002#discussion_r81587872","pull_request_url":"https://api.github.com/repos/apache/incubator-beam/pulls/1002","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/comments/81587872"},"html":{"href":"https://github.com/apache/incubator-beam/pull/1002#discussion_r81587872"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/1002"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-beam/pulls/1002","id":86757635,"html_url":"https://github.com/apache/incubator-beam/pull/1002","diff_url":"https://github.com/apache/incubator-beam/pull/1002.diff","patch_url":"https://github.com/apache/incubator-beam/pull/1002.patch","issue_url":"https://api.github.com/repos/apache/incubator-beam/issues/1002","number":1002,"state":"open","locked":false,"title":"[BEAM-614] Updates FileBasedSource to support CompressionTypes.AUTO.","user":{"login":"chamikaramj","id":10819857,"avatar_url":"https://avatars.githubusercontent.com/u/10819857?v=3","gravatar_id":"","url":"https://api.github.com/users/chamikaramj","html_url":"https://github.com/chamikaramj","followers_url":"https://api.github.com/users/chamikaramj/followers","following_url":"https://api.github.com/users/chamikaramj/following{/other_user}","gists_url":"https://api.github.com/users/chamikaramj/gists{/gist_id}","starred_url":"https://api.github.com/users/chamikaramj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamikaramj/subscriptions","organizations_url":"https://api.github.com/users/chamikaramj/orgs","repos_url":"https://api.github.com/users/chamikaramj/repos","events_url":"https://api.github.com/users/chamikaramj/events{/privacy}","received_events_url":"https://api.github.com/users/chamikaramj/received_events","type":"User","site_admin":false},"body":"Updates FileBasedSource to support CompressionTypes.AUTO.\r\n\r\nFixes some tests that were not properly being tested.\r\n\r\nAdds tests for CompressionTypes.AUTO.\r\n\r\n","created_at":"2016-09-26T14:51:54Z","updated_at":"2016-10-03T16:36:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b94c44e75c224063755ffa49ad3534e9d1a2900e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-beam/pulls/1002/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-beam/pulls/1002/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-beam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-beam/issues/1002/comments","statuses_url":"https://api.github.com/repos/apache/incubator-beam/statuses/bba0275c0f6cca179183eaf32dd02db458da1103","head":{"label":"chamikaramj:fix_compressed_auto_2","ref":"fix_compressed_auto_2","sha":"bba0275c0f6cca179183eaf32dd02db458da1103","user":{"login":"chamikaramj","id":10819857,"avatar_url":"https://avatars.githubusercontent.com/u/10819857?v=3","gravatar_id":"","url":"https://api.github.com/users/chamikaramj","html_url":"https://github.com/chamikaramj","followers_url":"https://api.github.com/users/chamikaramj/followers","following_url":"https://api.github.com/users/chamikaramj/following{/other_user}","gists_url":"https://api.github.com/users/chamikaramj/gists{/gist_id}","starred_url":"https://api.github.com/users/chamikaramj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamikaramj/subscriptions","organizations_url":"https://api.github.com/users/chamikaramj/orgs","repos_url":"https://api.github.com/users/chamikaramj/repos","events_url":"https://api.github.com/users/chamikaramj/events{/privacy}","received_events_url":"https://api.github.com/users/chamikaramj/received_events","type":"User","site_admin":false},"repo":{"id":61584074,"name":"incubator-beam","full_name":"chamikaramj/incubator-beam","owner":{"login":"chamikaramj","id":10819857,"avatar_url":"https://avatars.githubusercontent.com/u/10819857?v=3","gravatar_id":"","url":"https://api.github.com/users/chamikaramj","html_url":"https://github.com/chamikaramj","followers_url":"https://api.github.com/users/chamikaramj/followers","following_url":"https://api.github.com/users/chamikaramj/following{/other_user}","gists_url":"https://api.github.com/users/chamikaramj/gists{/gist_id}","starred_url":"https://api.github.com/users/chamikaramj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chamikaramj/subscriptions","organizations_url":"https://api.github.com/users/chamikaramj/orgs","repos_url":"https://api.github.com/users/chamikaramj/repos","events_url":"https://api.github.com/users/chamikaramj/events{/privacy}","received_events_url":"https://api.github.com/users/chamikaramj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chamikaramj/incubator-beam","description":"Mirror of Apache Beam (Incubating)","fork":true,"url":"https://api.github.com/repos/chamikaramj/incubator-beam","forks_url":"https://api.github.com/repos/chamikaramj/incubator-beam/forks","keys_url":"https://api.github.com/repos/chamikaramj/incubator-beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chamikaramj/incubator-beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chamikaramj/incubator-beam/teams","hooks_url":"https://api.github.com/repos/chamikaramj/incubator-beam/hooks","issue_events_url":"https://api.github.com/repos/chamikaramj/incubator-beam/issues/events{/number}","events_url":"https://api.github.com/repos/chamikaramj/incubator-beam/events","assignees_url":"https://api.github.com/repos/chamikaramj/incubator-beam/assignees{/user}","branches_url":"https://api.github.com/repos/chamikaramj/incubator-beam/branches{/branch}","tags_url":"https://api.github.com/repos/chamikaramj/incubator-beam/tags","blobs_url":"https://api.github.com/repos/chamikaramj/incubator-beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chamikaramj/incubator-beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chamikaramj/incubator-beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/chamikaramj/incubator-beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chamikaramj/incubator-beam/statuses/{sha}","languages_url":"https://api.github.com/repos/chamikaramj/incubator-beam/languages","stargazers_url":"https://api.github.com/repos/chamikaramj/incubator-beam/stargazers","contributors_url":"https://api.github.com/repos/chamikaramj/incubator-beam/contributors","subscribers_url":"https://api.github.com/repos/chamikaramj/incubator-beam/subscribers","subscription_url":"https://api.github.com/repos/chamikaramj/incubator-beam/subscription","commits_url":"https://api.github.com/repos/chamikaramj/incubator-beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/chamikaramj/incubator-beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/chamikaramj/incubator-beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/chamikaramj/incubator-beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/chamikaramj/incubator-beam/contents/{+path}","compare_url":"https://api.github.com/repos/chamikaramj/incubator-beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chamikaramj/incubator-beam/merges","archive_url":"https://api.github.com/repos/chamikaramj/incubator-beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chamikaramj/incubator-beam/downloads","issues_url":"https://api.github.com/repos/chamikaramj/incubator-beam/issues{/number}","pulls_url":"https://api.github.com/repos/chamikaramj/incubator-beam/pulls{/number}","milestones_url":"https://api.github.com/repos/chamikaramj/incubator-beam/milestones{/number}","notifications_url":"https://api.github.com/repos/chamikaramj/incubator-beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chamikaramj/incubator-beam/labels{/name}","releases_url":"https://api.github.com/repos/chamikaramj/incubator-beam/releases{/id}","deployments_url":"https://api.github.com/repos/chamikaramj/incubator-beam/deployments","created_at":"2016-06-20T22:15:27Z","updated_at":"2016-06-20T22:15:32Z","pushed_at":"2016-10-03T14:39:15Z","git_url":"git://github.com/chamikaramj/incubator-beam.git","ssh_url":"git@github.com:chamikaramj/incubator-beam.git","clone_url":"https://github.com/chamikaramj/incubator-beam.git","svn_url":"https://github.com/chamikaramj/incubator-beam","homepage":null,"size":19557,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"apache:python-sdk","ref":"python-sdk","sha":"731a7715233f91599dd10133c58cdf97c87d6564","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":50904245,"name":"incubator-beam","full_name":"apache/incubator-beam","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-beam","description":"Mirror of Apache Beam (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-beam","forks_url":"https://api.github.com/repos/apache/incubator-beam/forks","keys_url":"https://api.github.com/repos/apache/incubator-beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-beam/teams","hooks_url":"https://api.github.com/repos/apache/incubator-beam/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-beam/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-beam/events","assignees_url":"https://api.github.com/repos/apache/incubator-beam/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-beam/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-beam/tags","blobs_url":"https://api.github.com/repos/apache/incubator-beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-beam/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-beam/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-beam/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-beam/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-beam/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-beam/subscription","commits_url":"https://api.github.com/repos/apache/incubator-beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-beam/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-beam/merges","archive_url":"https://api.github.com/repos/apache/incubator-beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-beam/downloads","issues_url":"https://api.github.com/repos/apache/incubator-beam/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-beam/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-beam/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-beam/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-beam/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-beam/deployments","created_at":"2016-02-02T08:00:06Z","updated_at":"2016-10-02T20:26:55Z","pushed_at":"2016-10-03T16:08:34Z","git_url":"git://github.com/apache/incubator-beam.git","ssh_url":"git@github.com:apache/incubator-beam.git","clone_url":"https://github.com/apache/incubator-beam.git","svn_url":"https://github.com/apache/incubator-beam","homepage":null,"size":29050,"stargazers_count":375,"watchers_count":375,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":237,"mirror_url":"git://git.apache.org/incubator-beam.git","open_issues_count":49,"forks":237,"open_issues":49,"watchers":375,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/1002"},"html":{"href":"https://github.com/apache/incubator-beam/pull/1002"},"issue":{"href":"https://api.github.com/repos/apache/incubator-beam/issues/1002"},"comments":{"href":"https://api.github.com/repos/apache/incubator-beam/issues/1002/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/1002/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-beam/pulls/1002/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-beam/statuses/bba0275c0f6cca179183eaf32dd02db458da1103"}}}}
{"actor":{"display_login":"chamikaramj"}}