r/bigquery • u/Material-Log3282 • 6h ago
Conversational Agents are now GA in GCP Bigquery
4
Upvotes
r/bigquery • u/Material-Log3282 • 6h ago
r/bigquery • u/Jealous-Ice-9733 • 18h ago
I've been working on a BigQuery FinOps suite that I've open-sourced and wanted to share it with the community (it is totally free)
If you run BigQuery at scale , you've probably dealt with some of these:
What the tool does: It connects to your org-level INFORMATION_SCHEMA views and runs diagnostic queries across your entire GCP Organization. The output is an interactive dashboard with actionable findings — DDL you can copy-paste, capacity simulation matrices, cost attribution breakdowns, etc.
| Category | What it does |
|---|---|
| Storage Optimizer | Audits every dataset for logical vs. physical billing — generates ALTER SCHEMA DDL for the ones where switching saves money |
| Capacity Planner | NumPy-based hourly slot simulation over a 730-hour billing month. Outputs a tiered recommendation matrix (Aggressive / Balanced / Performance baselines) |
| Fluid Scaling Simulator | Identifies reservations hit by the 60-second cooldown tax and simulates savings from true per-second billing |
| Cost Attribution Engine | Proportionally distributes idle reservation waste back to user projects — solves the "admin project eats all the cost" problem |
| HBO Tracker | Matches optimized vs. baseline query plans using normalized hashes. Tracks savings and warns about plans nearing 130-day expiry |
| AI Doctor | The only module using GenAI — sends top queries to Gemini via BigQuery's native AI.GENERATE (zero infra: no CREATE MODEL, no connection, no dataset) |
| Anti-Pattern Linter | Static SQL analysis — SELECT *, unclustered LIMITs, DML abuse, redundant MVs |
| + 11 more | BI Engine, Data Skew, Batch candidates, Governance, Top Spenders, etc. |
pip install and run.JOBS_BY_ORGANIZATION, TABLE_STORAGE_BY_ORGANIZATION, etc. — not just single-project views._safe_ident(), Pydantic validation on every parameter, XSS escaping on all frontend rendering. git clone https://github.com/mbettan/bq-finops-optimizer.git
cd bq-finops-optimizer
pip install -r requirements.txt
AUTH_ENFORCED_UPSTREAM=true uvicorn src.main:app --reload --port 8080