Files
fn_registry/python/functions/bigquery/bq_get_dataset.md
T
egutierrez cfdf515228 chore: auto-commit (799 archivos)
- .claude/CLAUDE.md
- .claude/commands/subagentes.md
- .claude/rules/INDEX.md
- .mcp.json
- bash/functions/cybersecurity/analyze_dns.md
- bash/functions/cybersecurity/audit_http_headers.md
- bash/functions/cybersecurity/audit_ssh_config.md
- bash/functions/cybersecurity/check_firewall.md
- bash/functions/cybersecurity/detect_suspicious_users.md
- bash/functions/cybersecurity/encrypt_file.md
- ...

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 00:28:20 +02:00

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_get_dataset function py infra 1.0.0 impure def bq_get_dataset(client: BQClient, dataset_id: str) -> dict Obtiene los detalles completos de un dataset de Google BigQuery. Usa client._client.get_dataset() del SDK oficial.
bigquery
gcp
dataset
get
google-cloud
python
pendiente-usar
false error_go_core
google-cloud-bigquery
name desc
client instancia autenticada de BQClient
name desc
dataset_id nombre del dataset a consultar (sin prefijo de proyecto)
dict con dataset_id, project, full_id, location, description, labels, created, modified, default_table_expiration_ms false
python/functions/bigquery/datasets.py

Ejemplo

from bigquery.client import bq_auth
from bigquery.datasets import bq_get_dataset

client = bq_auth("my-project")
ds = bq_get_dataset(client, "analytics")
print(ds["location"], ds["description"])
print(ds["created"])  # ISO 8601: "2024-01-15T10:30:00+00:00"

Notas

Lanza google.api_core.exceptions.NotFound (404) si el dataset no existe. Los campos created y modified son strings ISO 8601 con timezone UTC, o None si el SDK no los retorna. labels es un dict vacio {} si el dataset no tiene labels.