Skip to content

Commit 55ee67c

Browse files
authored
Merge pull request #149 from rhoboro/fix_get_all_tables_with_different_project_id
fix get_all_tables with different project_id
2 parents 96ff0b1 + fb47d04 commit 55ee67c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bigquery/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1487,13 +1487,13 @@ def _get_all_tables_for_dataset(self, dataset_id, project_id=None):
14871487
project_id = self._get_project_id(project_id)
14881488

14891489
result = self.bigquery.tables().list(
1490-
projectId=self.project_id,
1490+
projectId=project_id,
14911491
datasetId=dataset_id).execute(num_retries=self.num_retries)
14921492

14931493
page_token = result.get('nextPageToken')
14941494
while page_token:
14951495
res = self.bigquery.tables().list(
1496-
projectId=self.project_id,
1496+
projectId=project_id,
14971497
datasetId=dataset_id,
14981498
pageToken=page_token
14991499
).execute(num_retries=self.num_retries)

0 commit comments

Comments
 (0)