9f5e6791db
Funciones CRUD completas para BigQuery: auth, datasets, tables, queries, jobs, routines, load/export. Tipo BQClient como wrapper del SDK oficial.
1.4 KiB
1.4 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| bq_delete_routine | function | py | infra | 1.0.0 | impure | def bq_delete_routine(client: BQClient, dataset_id: str, routine_id: str) -> None | Elimina una routine de un dataset. |
|
true | error_go_core |
|
|
None; lanza NotFound si la routine no existe | false | python/functions/bigquery/routines.py |
Ejemplo
from bigquery.client import bq_auth
from bigquery.routines import bq_delete_routine
client = bq_auth("my-project")
bq_delete_routine(client, "analytics", "double_value")
# La routine queda eliminada permanentemente
Notas
Lanza google.api_core.exceptions.NotFound (404) si la routine no existe. La operacion es permanente e irreversible.
Para eliminar y recrear una routine actualizada, combinar con bq_create_routine:
bq_delete_routine(client, "analytics", "double_value")
bq_create_routine(client, "analytics", "double_value", body="x * 3", ...)