This tool is built for query-level debugging. If you need to explore dataset metadata or run exploratory SQL, use the Warehouse Tool or SQL Query Tool instead.
Capabilities
The BigQuery Query Analysis Tool fetches detailed execution data for a given BigQuery job ID fromINFORMATION_SCHEMA.JOBS_BY_ORGANIZATION and returns it as a structured report DinoAI can reason over. Specifically, it:
- Breaks down query duration and phase timings
- Reports slot consumption and resource usage
- Surfaces cache efficiency and partition usage
- Includes bytes processed and bytes billed
- Highlights queue time vs. execution time
- Defaults to a 7-day search window, narrowable with explicit start and end dates
Using the BigQuery Query Analysis Tool
- Open DinoAI in the right panel of the Code IDE
- Provide the BigQuery job ID you want to analyze (e.g.
bquxjob_28b5b82e_19c066dea29) - Add your prompt describing what you want DinoAI to focus on — bottlenecks, slot usage, cache efficiency, partition pruning, and so on
- Grant permission when DinoAI asks to access the query data
- Review DinoAI’s analysis and apply the suggested optimizations
Example Use Cases
Diagnosing a Slow Query
PromptInvestigating Slot Contention
PromptChecking Cache Efficiency
PromptWorking with Other Tools
The BigQuery Query Analysis Tool works well alongside DinoAI’s other capabilities to support your full debugging and optimization workflow:- Combine with the SQL Execution Tool to re-run an optimized version of the query and validate the performance improvement against a new job ID
- Combine with the Warehouse Tool to cross-reference query performance with table metadata, clustering keys, and partition information
- Use alongside Git Lite to commit query or model changes made as a result of the performance analysis