From 66b2b0adb8787b9c3914ea6d7fe0f496db5b4838 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 3 Aug 2017 06:12:47 -0400 Subject: [PATCH] TST: xfail delete/create table with different schema test --- pandas_gbq/tests/test_gbq.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pandas_gbq/tests/test_gbq.py b/pandas_gbq/tests/test_gbq.py index e8eda1d3..930a9296 100644 --- a/pandas_gbq/tests/test_gbq.py +++ b/pandas_gbq/tests/test_gbq.py @@ -1033,6 +1033,17 @@ def test_upload_subset_columns_if_table_exists_append(self): private_key=_get_private_key_path()) assert result['num_rows'][0] == test_size * 2 + # This test is currently failing intermittently due to changes in the + # BigQuery backend. You can track the issue in the Google BigQuery issue + # tracker `here `__. + # Currently you need to stream data twice in order to successfully stream + # data when you delete and re-create a table with a different schema. + # Something to consider is that google-cloud-bigquery returns an array of + # streaming insert errors rather than raising an exception. In this + # scenario, a decision could be made by the user to check for streaming + # errors and retry as needed. See `Issue 75 + # `__ + @pytest.mark.xfail(reason="Delete/create table w/ different schema issue") def test_upload_data_if_table_exists_replace(self): test_id = "4" test_size = 10