BigQuery Job Monitoring & ML-based Query Classification This solution builds a passive BigQuery job monitoring and ML-based classification system . It continuously collects BigQuery job metadata, enriches it with reservation capacity context, derives meaningful features, and trains a BigQuery ML model to identify good vs. problematic jobs . No production queries are modified No jobs are killed or throttled 100% metadata-driven and read-only Fully automated using scheduled queries This solution consist of two Phases, What Phase 1 Does Collects BigQuery job execution metadata on a schedule Captures slot reservation capacity information Derives job-level features such as runtime, slot usage, SQL patterns, and time attributes Applies rule-based classification to label jobs as good or problematic Trains a BigQuery ML model to learn query behavior patterns Retrains the model daily to stay accurate as workloads evolve Key Components bq_job_history – raw BigQuery job execution ...