We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import_google_sheet()
1 parent 939c6a7 commit 7d85fb8Copy full SHA for 7d85fb8
bigquery_etl/util/google_sheets.py
@@ -107,3 +107,11 @@ def import_google_sheet(
107
print(
108
f"Imported {result.total_rows} rows from {sheet_url} into `{destination_table}`."
109
)
110
+
111
+ # Redeploy the table schema to add back field descriptions, which get removed when overwriting the table.
112
+ client.update_table(
113
+ bigquery.Table(
114
+ destination_table, schema=destination_schema.to_bigquery_schema()
115
+ ),
116
+ fields=["schema"],
117
+ )
0 commit comments