a03675113a
- .claude/agents/fn-orquestador/SKILL.md - .claude/commands/fn_claude.md - .claude/rules/INDEX.md - .claude/rules/cpp_apps.md - .claude/rules/ids_naming.md - CHANGELOG.md - apps/dag_engine/README.md - apps/dag_engine/api.go - apps/dag_engine/dags_migrated/example.yaml - apps/dag_engine/dags_migrated/example_lineage_tracking.yaml - ... Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1.8 KiB
1.8 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_table | function | py | infra | 1.0.0 | impure | def bq_get_table(client: BQClient, dataset_id: str, table_id: str) -> dict | Obtiene los metadatos completos de una tabla BigQuery incluyendo schema, estadisticas y configuracion. Usa client._client.get_table() del SDK oficial. |
|
false | error_go_core |
|
|
dict con metadata completa: table_id, dataset_id, project, full_id, schema (lista de dicts), num_rows, num_bytes, created (ISO 8601), modified (ISO 8601), type, partitioning, clustering, description, labels | false | python/functions/bigquery/tables.py |
Ejemplo
from bigquery import bq_auth, bq_get_table
client = bq_auth("mi-proyecto")
tabla = bq_get_table(client, "ventas_ds", "transacciones")
print(tabla["full_id"]) # mi-proyecto.ventas_ds.transacciones
print(tabla["num_rows"]) # filas totales
print(tabla["num_bytes"]) # bytes almacenados
for col in tabla["schema"]:
print(col["name"], col["type"], col["mode"])
Notas
num_rows y num_bytes son estadisticas actualizadas por BigQuery periodicamente (pueden tener un pequeno retraso). El campo type puede ser TABLE, VIEW, MATERIALIZED_VIEW o EXTERNAL. partitioning es None si la tabla no tiene particionamiento. created y modified estan en formato ISO 8601.