Lune

ICDE2025Top-tier venue

Towards a Unified Query Plan Representation

Jinsheng Ba, Manuel Rigger

Abstract

In database systems, a query plan is a series of concrete internal steps to execute a query. Multiple testing approaches utilize query plans for finding bugs. However, query plans are represented in a database-specific manner, so implementing these testing approaches requires a non-trivial effort, hindering their adoption. We envision that a unified query plan representation can facilitate the implementation of these approaches. In this paper, we present an exploratory case study to investigate query plan representations in nine widely-used database systems. Our study shows that query plan representations consist of three conceptual components: operations, properties, and formats, which enable us to design a unified query plan representation. Based on it, existing testing methods can be efficiently adopted, finding 17 previously unknown and unique bugs. Additionally, the unified query plan representation can facilitate other applications. Existing visualization tools can support multiple database systems based on the unified query plan representation with moderate implementation effort, and comparing unified query plans across database systems provides actionable insights to improve their performance. We expect that the unified query plan representation will enable the exploration of additional application scenarios.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Automatic View Generation with Deep Learning and Reinforcement Learning cites Reinforcement Learning with Tree-LSTM for Join Order Selection
  • Understanding and Reusing Test Suites Across Database Systems cites Finding bugs in database systems via query partitioning
  • QueryFormer: A Tree Transformer Model for Query Plan Representation cites Automatic View Generation with Deep Learning and Reinforcement Learning
  • QueryFormer: A Tree Transformer Model for Query Plan Representation cites Reinforcement Learning with Tree-LSTM for Join Order Selection
  • QueryFormer: A Tree Transformer Model for Query Plan Representation cites Bao: Making Learned Query Optimization Practical
  • TATA: An Efficient Framework for Task Transfer in Query Plan Representation cites Automatic View Generation with Deep Learning and Reinforcement Learning
  • TATA: An Efficient Framework for Task Transfer in Query Plan Representation cites QueryFormer: A Tree Transformer Model for Query Plan Representation
  • TATA: An Efficient Framework for Task Transfer in Query Plan Representation cites Reinforcement Learning with Tree-LSTM for Join Order Selection
  • TATA: An Efficient Framework for Task Transfer in Query Plan Representation cites Bao: Making Learned Query Optimization Practical
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Understanding and Reusing Test Suites Across Database SystemsSuyang Zhong, Manuel RiggerSIGMOD 2025 · 4 citations
  2. TATA: An Efficient Framework for Task Transfer in Query Plan RepresentationYue Zhao, Songsong Mo, Gao CongVLDB 2026

Builds on7

  1. Bao: Making Learned Query Optimization PracticalRyan Marcus, Parimarjan Negi, Hongzi Mao, Nesime Tatbul et al.SIGMOD 2021 · 242 citations
  2. Reinforcement Learning with Tree-LSTM for Join Order SelectionXiang Yu, Guoliang Li, Chengliang Chai, Nan TangICDE 2020 · 168 citations
  3. QueryFormer: A Tree Transformer Model for Query Plan RepresentationYue Zhao, Gao Cong, Jiachen Shi, Chunyan MiaoVLDB 2022 · 117 citations
  4. Finding bugs in database systems via query partitioningManuel Rigger, Zhendong SuOOPSLA 2020 · 116 citations
  5. Automatic View Generation with Deep Learning and Reinforcement LearningHaitao Yuan, Guoliang Li, Ling Feng, Ji Sun et al.ICDE 2020 · 66 citations

Related papers

  1. Testing Database Engines via Query Plan GuidanceJinsheng Ba, Manuel RiggerICSE 2023 · 39 citations
  2. QOVIS: Understanding and Diagnosing Query Optimizer via a Visualization-assisted Approach (Revision)Zhengxin You, Qiaomu Shen, Man Lung Yiu, Bo TangVLDB 2025 · 1 citation
  3. Mozi: Discovering DBMS Bugs via Configuration-Based Equivalent TransformationJie Liang, Zhiyong Wu, Jingzhou Fu, Mingzhe Wang et al.ICSE 2024 · 18 citations
  4. Understanding Query Optimization Bugs in Graph Database SystemsYuyu Chen, Zhongxing YuASPLOS 2026 · 1 citation
  5. A Comparative Study and Component Analysis of Query Plan Representation Techniques in ML4DB StudiesYue Zhao, Zhaodonghui Li, Gao CongVLDB 2024 · 19 citations
Dusk over the sea between two cliffs drawn in fine vertical lines