Adaptive and Robust Query Execution for Lakehouses at Scale
Maryann XueYingyi BuAbhishek SomaniWenchen FanZiqi LiuSteven ChenHerman van HovellBart SamwelMostafa MokhtarRK KorlapatiAndy LamYunxiao Ma +11
Maryann Xue
Yingyi Bu
Abhishek Somani
Wenchen Fan
Ziqi Liu
Steven Chen
Herman van Hovell
Bart Samwel
Mostafa Mokhtar
RK Korlapati
Andy Lam
Yunxiao Ma
+23
This paper presents the design, implementation, evaluation, and production practice of Databricks' Adaptive Query Execution (AQE) framework, which addresses Lakehouse challenges—unmaintained or outdated statistics, poor cardinality estimates, and the risks of rigid static plans—by exploiting natural execution pipeline breakers to gather accurate statistics and re-optimize query plans at runtime, improving both performance and robustness. On TPC-DS, AQE yields up to $25\times$ speedup per query, and it has been deployed in production for years, powering billions of queries and ETL jobs over exabytes of data daily.

PVLDB · November 8, 2024