Skip to content

Commit 6c6f715

Browse files
committed
remove unused function
1 parent 605fdc7 commit 6c6f715

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

pandas_gbq/gbq.py

-20
Original file line numberDiff line numberDiff line change
@@ -582,26 +582,6 @@ def verify_schema(self, dataset_id, table_id, schema):
582582
except HttpError as ex:
583583
self.process_http_error(ex)
584584

585-
def delete_and_recreate_table(self, dataset_id, table_id, table_schema):
586-
delay = 0
587-
588-
# Changes to table schema may take up to 2 minutes as of May 2015 See
589-
# `Issue 191
590-
# <https://code.google.com/p/google-bigquery/issues/detail?id=191>`__
591-
# Compare previous schema with new schema to determine if there should
592-
# be a 120 second delay
593-
594-
if not self.verify_schema(dataset_id, table_id, table_schema):
595-
self._print('The existing table has a different schema. Please '
596-
'wait 2 minutes. See Google BigQuery issue #191')
597-
delay = 120
598-
599-
table = _Table(self.project_id, dataset_id,
600-
private_key=self.private_key)
601-
table.delete(table_id)
602-
table.create(table_id, table_schema)
603-
sleep(delay)
604-
605585

606586
def _parse_data(schema, rows):
607587
# see:

0 commit comments

Comments
 (0)