Skip to content

Commit 66b2b0a

Browse files
committed
TST: xfail delete/create table with different schema test
1 parent 2a386d1 commit 66b2b0a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pandas_gbq/tests/test_gbq.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,17 @@ def test_upload_subset_columns_if_table_exists_append(self):
10331033
private_key=_get_private_key_path())
10341034
assert result['num_rows'][0] == test_size * 2
10351035

1036+
# This test is currently failing intermittently due to changes in the
1037+
# BigQuery backend. You can track the issue in the Google BigQuery issue
1038+
# tracker `here <https://issuetracker.google.com/issues/64329577>`__.
1039+
# Currently you need to stream data twice in order to successfully stream
1040+
# data when you delete and re-create a table with a different schema.
1041+
# Something to consider is that google-cloud-bigquery returns an array of
1042+
# streaming insert errors rather than raising an exception. In this
1043+
# scenario, a decision could be made by the user to check for streaming
1044+
# errors and retry as needed. See `Issue 75
1045+
# <https://github.com/pydata/pandas-gbq/issues/75>`__
1046+
@pytest.mark.xfail(reason="Delete/create table w/ different schema issue")
10361047
def test_upload_data_if_table_exists_replace(self):
10371048
test_id = "4"
10381049
test_size = 10

0 commit comments

Comments
 (0)