Skip to content

Commit 599357f

Browse files
committed
Reloading BigQuery table in system test before fetching data.
e.g. https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/2065 Error introduced in #3426.
1 parent 85fd45a commit 599357f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bigquery/tests/system.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,8 @@ def test_dump_table_w_public_data(self):
826826

827827
dataset = Config.CLIENT.dataset(DATASET_NAME, project=PUBLIC)
828828
table = dataset.table(TABLE_NAME)
829+
# Reload table to get the schema before fetching the rows.
830+
table.reload()
829831
self._fetch_single_page(table)
830832

831833
def test_insert_nested_nested(self):

0 commit comments

Comments
 (0)