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.
1 parent b16740e commit 48992e2Copy full SHA for 48992e2
samples/snippets/udf.py
@@ -112,10 +112,9 @@ def get_hash(input: str) -> str:
112
df_redacted = df[["species", "island", "sex"]].map(get_hash)
113
df_redacted.peek(10)
114
115
- # [END bigquery_dataframes_udf]
116
-
117
- # Clean up cloud artifacts
+ # If the BigQuery routine is no longer needed, we can clean it up
+ # to free up any cloud quota
118
session = bpd.get_global_session()
119
- session.bqclient.delete_routine(
120
- f"{your_bq_dataset_id}.{your_bq_routine_id}", not_found_ok=True
121
- )
+ session.bqclient.delete_routine(f"{your_bq_dataset_id}.{your_bq_routine_id}")
+
+ # [END bigquery_dataframes_udf]
0 commit comments