arrow
Return

LEAP: A Low-cost Spark SQL Query Optimizer using Pairwise Comparison

delete2025-04-07
delete0
PRE
AI
Y
Ye, Junhao *
J
Jiahui Li
陈璐 cover
陈璐 (Lu Chen)
Y
Yuren Mao
Y
Yunjun Gao
T
Tianyi Li
DOI:10.14778/3712221.3712234delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Selecting a good execution plan can significantly improve the query efficiency of Spark SQL. Several machine learning-based techniques have been proposed to select good execution plans for DBMS, but none of them perform well on Spark SQL due to the following issues. (1) Limited compatibility with Spark SQL: these approaches rely on physical operator enumeration, while Spark SQL doesn't support it; (2) Unreliable cost estimation: they often select execution plans with poor performance due to inaccurate cost estimation; (3) Time-consuming plan enumeration: they take much time to generate a large number of candidate execution plans in Spark SQL. To overcome these issues, in this paper, we propose LEAP, the first learned query optimizer tailored for Spark SQL, which can be integrated seamlessly into Spark SQL and solves the compatibility issue. Also, to avoid the unreliable cost value estimation, LEAP selects execution plans with an estimation-free method, which directly performs comparisons between the plans. Furthermore, LEAP employs an efficient progressive plan enumeration algorithm with pruning techniques to find better plans with fewer enumerations. Extensive experiments on three public benchmarks show the effectiveness of LEAP. It reduces the end-to-end execution time of the native optimizer by up to 54% and other learned methods by up to 94%.

Journal

P
Proceedings of the VLDB Endowment
IF:
3.3
Papers:
563
Citations:
1.2W

Organization

Z
zhejiang key lab big data intelligent comp
Scholars:
4
Papers: 2
Citations: 0
Cited Papers

Cited Papers

QueryFormer
err2022-06-22
err0
PREAI
errYue Zhao; Gao Cong; Jiachen Shi; Chunyan Miao
errShare
errSave
Dynamic Index Construction with Deep Reinforcement Learning
err2022-05-06
err12
errOAAI
errWu, Sai; Li, Ying; Zhu, Haoqi; Zhao, Junbo; Chen, Gang
errShare
errSave
Algorithm 65: find
err1961-07-01
err0
PREAI
errC. A. R. Hoare
errShare
errSave
Robust Query Driven Cardinality Estimation under Changing Workloads
err2023-04-20
err0
PREAI
errParimarjan Negi; Ziniu Wu; Andreas Kipf; Nesime Tatbul; Ryan Marcus; Sam Madden; Tim Kraska; Mohammad Alizadeh
errShare
errSave
ALECE: An Attention-based Learned Cardinality Estimator for SPJ Queries on Dynamic Workloads
err2023-10-01
err0
errOAAI
errPengfei Li; Wenqing Wei; Rong Zhu; Bolin Ding; Jingren Zhou; Hua Lu
errShare
errSave
Deep Reinforcement Learning: A Brief Survey
err2017-11-01
err0
errOAAI
errKai Arulkumaran; Marc Peter Deisenroth; Miles Brundage; Anil Anthony Bharath
errShare
errSave
A learned cost model for big data query processing
err2024-06-01
err0
PREAI
errYan Li; Liwei Wang; Sheng Wang; Yuan Sun; Bolong Zheng; Zhiyong Peng
errShare
errSave
errShare
errSave
researcher View more