From 599357f83ccccec07d3fea1021b5b17084f17935 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Fri, 2 Jun 2017 14:16:28 -0700 Subject: [PATCH] Reloading BigQuery table in system test before fetching data. e.g. https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/2065 Error introduced in #3426. --- bigquery/tests/system.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bigquery/tests/system.py b/bigquery/tests/system.py index baad4a240507..7d292689344a 100644 --- a/bigquery/tests/system.py +++ b/bigquery/tests/system.py @@ -826,6 +826,8 @@ def test_dump_table_w_public_data(self): dataset = Config.CLIENT.dataset(DATASET_NAME, project=PUBLIC) table = dataset.table(TABLE_NAME) + # Reload table to get the schema before fetching the rows. + table.reload() self._fetch_single_page(table) def test_insert_nested_nested(self):