Pre-Execution Query Slot-Time Prediction in Cloud Data Warehouses: A Feature-Scoped Machine Learning Approach

📅 2026-04-21
📈 Citations: 0
Influential: 0
📄 PDF

career value

207K/year
🤖 AI Summary
Accurately estimating slot-time—the computational resource consumption—prior to query execution in cloud data warehouses remains challenging, often leading to budget overruns and inefficient scheduling. This work proposes a pre-execution prediction framework that leverages only observable features such as SQL structure, planner estimates, and query text. It integrates complexity scores, metadata, and TF-IDF/TruncatedSVD-512 text embeddings into a dual-model architecture based on HistGradientBoostingRegressor, augmented with a complexity-aware routing mechanism. Evaluated on 746 out-of-distribution queries, the approach achieves a mean absolute error (MAE) of 1.17, root mean squared error (RMSE) of 4.71, and 74% explained variance. For high-cost queries, it reduces MAE by 30–37% compared to mean/median baselines, substantially improving prediction accuracy and generalization.

Technology Category

Application Category

📝 Abstract
Cloud data warehouses bill compute based on slot-time consumed. In shared multi-tenant environments, query cost is highly variable and hard to estimate before execution, causing budget overruns and degraded scheduling. Static query-planner heuristics fail to capture complex SQL structure, data skew, and workload contention. We present a feature-scoped machine learning approach that predicts BigQuery slot-time before execution using only pre-execution observable signals: a structured query complexity score derived from SQL operator costs, data volume features from planner estimates and workload metadata, and textual features from query text. We deliberately exclude runtime factors (slot-pool utilization, cache state, realized skew) unknowable at submission. The model uses a HistGradientBoostingRegressor trained on log-transformed slot-time, with a TF-IDF + TruncatedSVD-512 text pipeline fused with numeric and categorical features. Trained on 749 queries across seven deployment environments and evaluated out-of-distribution on 746 queries from two held-out environments, the model achieves MAE 1.17 slot-minutes, RMSE 4.71, and 74% explained variance on the full workload. On cost-significant queries (slot-time >= 0.01 min, N=282) the model achieves MAE 3.10 versus 4.95 for a predict-mean baseline and 4.54 for predict-median, a 30-37% reduction. On long-tail queries (>= 20 min, N=22) the model does not outperform trivial baselines, consistent with the hypothesis that long-tail queries are dominated by unobserved runtime factors outside the current feature scope. A complexity-routed dual-model architecture is described as a practical refinement, and directions for closing the long-tail gap are identified as future work.
Problem

Research questions and friction points this paper is trying to address.

slot-time prediction
cloud data warehouses
query cost estimation
pre-execution prediction
workload contention
Innovation

Methods, ideas, or system contributions that make the work stand out.

slot-time prediction
feature-scoped machine learning
query cost estimation
cloud data warehouse
pre-execution prediction
🔎 Similar Papers
No similar papers found.