mlsanityData to 14 Oct 2026

A Learned Cost Model-based Cross-engine Optimizer for SQL Workloads

arXiv 2506.02802 ↗First posted 3 Jun 2025cs.DB cs.LGcited by 2

Not on the map. Why?

Abstract (arXiv)

Lakehouse systems enable the same data to be queried with multiple execution engines. However, selecting the engine best suited to run a SQL query still requires a priori knowledge of the query computational requirements and an engine capability, a complex and manual task that only becomes more difficult with the emergence of new engines and workloads. In this paper, we address this limitation by proposing a cross-engine optimizer that can automate engine selection for diverse SQL queries through a learned cost model. Optimized with hints, a query plan is used for query cost prediction and routing. Cost prediction is formulated as a multi-task learning problem, and multiple predictor heads, corresponding to different engines and provisionings, are used in the model architecture. This eliminates the need to train engine-specific models and allows the flexible addition of new engines at a minimal fine-tuning cost. Results on various databases and engines show that using a query optimized logical plan for cost estimation decreases the average Q-error by even 12.6% over using unoptimized plans as input. Moreover, the proposed cross-engine optimizer reduces the total workload runtime by up to 25.2% in a zero-shot setting and 30.4% in a few-shot setting when compared to random routing.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 7 of its 36 references that are in the map. First posted on arXiv 3 Jun 2025.

Builds on

7 of 36 references.

References · 7

  1. 2019An End-to-End Learning-based Cost Estimatorcited by 43
  2. 2023Lero: A Learning-to-Rank Query Optimizercited by 26
  3. 2018Apache Calcite: A Foundational Framework for Optimized Query Processing Over Heterogeneous Data Sourcescited by 25
  4. 2022Zero-Shot Cost Models for Out-of-the-box Learned Cost Predictioncited by 16
  5. 2024Learned Graph Rewriting with Equality Saturation: A New Paradigm in Relational Query Rewrite and Beyondcited by 3
  6. 2021Skeena: Efficient and Consistent Cross-Engine Transactionscited by 1
  7. 2021AWESOME: Empowering Scalable Data Science on Social Media Data with an Optimized Tri-Store Data Systemcited by 1

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.