{"action":"created","comment":{"url":"https://api.github.com/repos/apache/beam/pulls/comments/112046415","pull_request_review_id":33332019,"id":112046415,"diff_hunk":"@@ -607,7 +607,20 @@ def __init__(self, source, test_bigquery_client=None, use_legacy_sql=True,\n \n   def __enter__(self):\n     self.client = BigQueryWrapper(client=self.test_bigquery_client)\n-    self.client.create_temporary_dataset(self.executing_project)\n+\n+    tr = self.source.table_reference","path":"sdks/python/apache_beam/io/gcp/bigquery.py","position":null,"original_position":6,"commit_id":"f4818e9f7b4acad14ba5d853b52b17a4513637c5","original_commit_id":"615f6fad7930819748c5fec3a2b313f137ef8c6f","user":{"login":"ubunatic","id":532284,"avatar_url":"https://avatars0.githubusercontent.com/u/532284?v=3","gravatar_id":"","url":"https://api.github.com/users/ubunatic","html_url":"https://github.com/ubunatic","followers_url":"https://api.github.com/users/ubunatic/followers","following_url":"https://api.github.com/users/ubunatic/following{/other_user}","gists_url":"https://api.github.com/users/ubunatic/gists{/gist_id}","starred_url":"https://api.github.com/users/ubunatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubunatic/subscriptions","organizations_url":"https://api.github.com/users/ubunatic/orgs","repos_url":"https://api.github.com/users/ubunatic/repos","events_url":"https://api.github.com/users/ubunatic/events{/privacy}","received_events_url":"https://api.github.com/users/ubunatic/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2017-04-18T19:46:24Z","updated_at":"2017-04-18T19:46:24Z","html_url":"https://github.com/apache/beam/pull/2582#discussion_r112046415","pull_request_url":"https://api.github.com/repos/apache/beam/pulls/2582","_links":{"self":{"href":"https://api.github.com/repos/apache/beam/pulls/comments/112046415"},"html":{"href":"https://github.com/apache/beam/pull/2582#discussion_r112046415"},"pull_request":{"href":"https://api.github.com/repos/apache/beam/pulls/2582"}}},"pull_request":{"url":"https://api.github.com/repos/apache/beam/pulls/2582","id":116400759,"html_url":"https://github.com/apache/beam/pull/2582","diff_url":"https://github.com/apache/beam/pull/2582.diff","patch_url":"https://github.com/apache/beam/pull/2582.patch","issue_url":"https://api.github.com/repos/apache/beam/issues/2582","number":2582,"state":"open","locked":false,"title":"[BEAM-1909] BigQuery read transform fails for DirectRunner when querying non-US regions","user":{"login":"ubunatic","id":532284,"avatar_url":"https://avatars0.githubusercontent.com/u/532284?v=3","gravatar_id":"","url":"https://api.github.com/users/ubunatic","html_url":"https://github.com/ubunatic","followers_url":"https://api.github.com/users/ubunatic/followers","following_url":"https://api.github.com/users/ubunatic/following{/other_user}","gists_url":"https://api.github.com/users/ubunatic/gists{/gist_id}","starred_url":"https://api.github.com/users/ubunatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubunatic/subscriptions","organizations_url":"https://api.github.com/users/ubunatic/orgs","repos_url":"https://api.github.com/users/ubunatic/repos","events_url":"https://api.github.com/users/ubunatic/events{/privacy}","received_events_url":"https://api.github.com/users/ubunatic/received_events","type":"User","site_admin":false},"body":"**Note**: This is an updated and condensed PR for the original PR: https://github.com/apache/beam/pull/2509\r\n\r\n**Description**:\r\nI partially (!) fixed the issue by getting the location of the source table. Then I use this location as location of the created temp dataset. The added parameters are optional and should not break anything.\r\n\r\n**Tests**: I tested with an US and EU dataset as source in a `DirectRunner`, i.e., using a `BigQuerySource` with `table=<some-table>`.\r\n\r\n**What's missing**: It does not work for a `BigQuerySource` with `query=<some-query>`.\r\n\r\nThe corresponding Jira issue should not yet be closed.","created_at":"2017-04-18T19:19:08Z","updated_at":"2017-04-18T19:46:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6622c66c2e39ca4ff4e1257238e0abda7fabe953","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/beam/pulls/2582/commits","review_comments_url":"https://api.github.com/repos/apache/beam/pulls/2582/comments","review_comment_url":"https://api.github.com/repos/apache/beam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/beam/issues/2582/comments","statuses_url":"https://api.github.com/repos/apache/beam/statuses/f4818e9f7b4acad14ba5d853b52b17a4513637c5","head":{"label":"ubunatic:set-temp-table-region-for-table-source","ref":"set-temp-table-region-for-table-source","sha":"f4818e9f7b4acad14ba5d853b52b17a4513637c5","user":{"login":"ubunatic","id":532284,"avatar_url":"https://avatars0.githubusercontent.com/u/532284?v=3","gravatar_id":"","url":"https://api.github.com/users/ubunatic","html_url":"https://github.com/ubunatic","followers_url":"https://api.github.com/users/ubunatic/followers","following_url":"https://api.github.com/users/ubunatic/following{/other_user}","gists_url":"https://api.github.com/users/ubunatic/gists{/gist_id}","starred_url":"https://api.github.com/users/ubunatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubunatic/subscriptions","organizations_url":"https://api.github.com/users/ubunatic/orgs","repos_url":"https://api.github.com/users/ubunatic/repos","events_url":"https://api.github.com/users/ubunatic/events{/privacy}","received_events_url":"https://api.github.com/users/ubunatic/received_events","type":"User","site_admin":false},"repo":{"id":87805358,"name":"beam","full_name":"ubunatic/beam","owner":{"login":"ubunatic","id":532284,"avatar_url":"https://avatars0.githubusercontent.com/u/532284?v=3","gravatar_id":"","url":"https://api.github.com/users/ubunatic","html_url":"https://github.com/ubunatic","followers_url":"https://api.github.com/users/ubunatic/followers","following_url":"https://api.github.com/users/ubunatic/following{/other_user}","gists_url":"https://api.github.com/users/ubunatic/gists{/gist_id}","starred_url":"https://api.github.com/users/ubunatic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubunatic/subscriptions","organizations_url":"https://api.github.com/users/ubunatic/orgs","repos_url":"https://api.github.com/users/ubunatic/repos","events_url":"https://api.github.com/users/ubunatic/events{/privacy}","received_events_url":"https://api.github.com/users/ubunatic/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ubunatic/beam","description":"Mirror of Apache Beam","fork":true,"url":"https://api.github.com/repos/ubunatic/beam","forks_url":"https://api.github.com/repos/ubunatic/beam/forks","keys_url":"https://api.github.com/repos/ubunatic/beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubunatic/beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubunatic/beam/teams","hooks_url":"https://api.github.com/repos/ubunatic/beam/hooks","issue_events_url":"https://api.github.com/repos/ubunatic/beam/issues/events{/number}","events_url":"https://api.github.com/repos/ubunatic/beam/events","assignees_url":"https://api.github.com/repos/ubunatic/beam/assignees{/user}","branches_url":"https://api.github.com/repos/ubunatic/beam/branches{/branch}","tags_url":"https://api.github.com/repos/ubunatic/beam/tags","blobs_url":"https://api.github.com/repos/ubunatic/beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubunatic/beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubunatic/beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubunatic/beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubunatic/beam/statuses/{sha}","languages_url":"https://api.github.com/repos/ubunatic/beam/languages","stargazers_url":"https://api.github.com/repos/ubunatic/beam/stargazers","contributors_url":"https://api.github.com/repos/ubunatic/beam/contributors","subscribers_url":"https://api.github.com/repos/ubunatic/beam/subscribers","subscription_url":"https://api.github.com/repos/ubunatic/beam/subscription","commits_url":"https://api.github.com/repos/ubunatic/beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubunatic/beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubunatic/beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubunatic/beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubunatic/beam/contents/{+path}","compare_url":"https://api.github.com/repos/ubunatic/beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubunatic/beam/merges","archive_url":"https://api.github.com/repos/ubunatic/beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubunatic/beam/downloads","issues_url":"https://api.github.com/repos/ubunatic/beam/issues{/number}","pulls_url":"https://api.github.com/repos/ubunatic/beam/pulls{/number}","milestones_url":"https://api.github.com/repos/ubunatic/beam/milestones{/number}","notifications_url":"https://api.github.com/repos/ubunatic/beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubunatic/beam/labels{/name}","releases_url":"https://api.github.com/repos/ubunatic/beam/releases{/id}","deployments_url":"https://api.github.com/repos/ubunatic/beam/deployments","created_at":"2017-04-10T11:56:32Z","updated_at":"2017-04-10T11:56:41Z","pushed_at":"2017-04-18T19:45:53Z","git_url":"git://github.com/ubunatic/beam.git","ssh_url":"git@github.com:ubunatic/beam.git","clone_url":"https://github.com/ubunatic/beam.git","svn_url":"https://github.com/ubunatic/beam","homepage":"","size":31908,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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:master","ref":"master","sha":"3101e69c438d5c42577fc7d3476d623f6e551837","user":{"login":"apache","id":47359,"avatar_url":"https://avatars3.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":"beam","full_name":"apache/beam","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars3.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/beam","description":"Mirror of Apache Beam","fork":false,"url":"https://api.github.com/repos/apache/beam","forks_url":"https://api.github.com/repos/apache/beam/forks","keys_url":"https://api.github.com/repos/apache/beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/beam/teams","hooks_url":"https://api.github.com/repos/apache/beam/hooks","issue_events_url":"https://api.github.com/repos/apache/beam/issues/events{/number}","events_url":"https://api.github.com/repos/apache/beam/events","assignees_url":"https://api.github.com/repos/apache/beam/assignees{/user}","branches_url":"https://api.github.com/repos/apache/beam/branches{/branch}","tags_url":"https://api.github.com/repos/apache/beam/tags","blobs_url":"https://api.github.com/repos/apache/beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/beam/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/beam/languages","stargazers_url":"https://api.github.com/repos/apache/beam/stargazers","contributors_url":"https://api.github.com/repos/apache/beam/contributors","subscribers_url":"https://api.github.com/repos/apache/beam/subscribers","subscription_url":"https://api.github.com/repos/apache/beam/subscription","commits_url":"https://api.github.com/repos/apache/beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/beam/contents/{+path}","compare_url":"https://api.github.com/repos/apache/beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/beam/merges","archive_url":"https://api.github.com/repos/apache/beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/beam/downloads","issues_url":"https://api.github.com/repos/apache/beam/issues{/number}","pulls_url":"https://api.github.com/repos/apache/beam/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/beam/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/beam/labels{/name}","releases_url":"https://api.github.com/repos/apache/beam/releases{/id}","deployments_url":"https://api.github.com/repos/apache/beam/deployments","created_at":"2016-02-02T08:00:06Z","updated_at":"2017-04-18T19:09:37Z","pushed_at":"2017-04-18T19:45:55Z","git_url":"git://github.com/apache/beam.git","ssh_url":"git@github.com:apache/beam.git","clone_url":"https://github.com/apache/beam.git","svn_url":"https://github.com/apache/beam","homepage":"","size":31589,"stargazers_count":1087,"watchers_count":1087,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":590,"mirror_url":"git://git.apache.org/beam.git","open_issues_count":79,"forks":590,"open_issues":79,"watchers":1087,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/beam/pulls/2582"},"html":{"href":"https://github.com/apache/beam/pull/2582"},"issue":{"href":"https://api.github.com/repos/apache/beam/issues/2582"},"comments":{"href":"https://api.github.com/repos/apache/beam/issues/2582/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/beam/pulls/2582/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/beam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/beam/pulls/2582/commits"},"statuses":{"href":"https://api.github.com/repos/apache/beam/statuses/f4818e9f7b4acad14ba5d853b52b17a4513637c5"}}}}
{"actor":{"display_login":"ubunatic"}}