Lune

ISSTA2024Top-tier venue

SQLess: Dialect-Agnostic SQL Query Simplification

Li Lin, Zongyin Hao, Chengpeng Wang, Zhuangda Wang, Rongxin Wu, Gang Fan

Abstract

Database Management Systems (DBMSs) are fundamental to numerous enterprise applications. Due to the significance of DBMSs, various testing techniques have been proposed to detect DBMS bugs. However, to trigger deep bugs, most of the existing techniques focus on generating lengthy and complex queries which burdens developers with the difficult of debugging. Therefore, SQL query simplification, which aims to reduce lengthy SQL queries without compromising their ability to detect bugs, is highly demanded. To bridge this gap, we introduce SQLess, an innovative approach that employs a dialect-agnostic method for efficient and semantically correct SQL query simplification tailored for various DBMSs. Unlike previous works that have to depend on DBMS-specific grammar, SQLess utilizes an adaptive parser, which leverages error recovery and grammar extension to support DBMS dialects. Moreover, SQLess performs a semantics-sensitive SQL query trimming, which leverages alias and dependency analysis to simplify SQL queries with preserving bug-triggering capability. We evaluate SQLess using two datasets from the state-of-theart database bug detection studies, encompassing six widely-used DBMSs and over 32,000 complex SQL queries. The results demonstrate SQLess's superior performance: it achieves an average simplification rate of 72.45% in the PINOLO Dataset, which significantly outperforms the state-of-the-art approaches by 84.91%.

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.

5 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

  • ValScope: Value-Semantics-Aware Metamorphic Testing for Detecting Logical Bugs in DBMSs cites SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback
  • ValScope: Value-Semantics-Aware Metamorphic Testing for Detecting Logical Bugs in DBMSs cites Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query Synthesis
  • ValScope: Value-Semantics-Aware Metamorphic Testing for Detecting Logical Bugs in DBMSs cites Finding bugs in database systems via query partitioning
  • ValScope: Value-Semantics-Aware Metamorphic Testing for Detecting Logical Bugs in DBMSs cites QTRAN: Extending Metamorphic-Oracle Based Logical Bug Detection Techniques for Multiple-DBMS Dialect Support
  • ValScope: Value-Semantics-Aware Metamorphic Testing for Detecting Logical Bugs in DBMSs cites Griffin : Grammar-Free DBMS Fuzzing
  • Pisco: An Isolation Bug Case Reduction and Deduplication Framework cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query Synthesis cites SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback
  • Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query Synthesis cites Finding bugs in database systems via query partitioning
  • Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query Synthesis cites Griffin : Grammar-Free DBMS Fuzzing
  • Finding bugs in database systems via query partitioning cites SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback
  • Finding bugs in database systems via query partitioning cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • QTRAN: Extending Metamorphic-Oracle Based Logical Bug Detection Techniques for Multiple-DBMS Dialect Support cites Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query Synthesis
  • QTRAN: Extending Metamorphic-Oracle Based Logical Bug Detection Techniques for Multiple-DBMS Dialect Support cites Finding bugs in database systems via query partitioning
  • QTRAN: Extending Metamorphic-Oracle Based Logical Bug Detection Techniques for Multiple-DBMS Dialect Support cites APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database Systems
  • Dialect-Agnostic SQL Parsing via LLM-Based Segmentation cites Finding bugs in database systems via query partitioning
  • Dialect-Agnostic SQL Parsing via LLM-Based Segmentation cites QTRAN: Extending Metamorphic-Oracle Based Logical Bug Detection Techniques for Multiple-DBMS Dialect Support
  • Griffin : Grammar-Free DBMS Fuzzing cites SQUIRREL: Testing Database Management Systems with Language Validity and Coverage Feedback
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. QTRAN: Extending Metamorphic-Oracle Based Logical Bug Detection Techniques for Multiple-DBMS Dialect SupportLi Lin, Qinglin Zhu, Hongqiao Chen, Zhuangda Wang et al.ISSTA 2025 · 2 citations
  2. ValScope: Value-Semantics-Aware Metamorphic Testing for Detecting Logical Bugs in DBMSsLi Lin, Liehang Chen, Rongxin WuOSDI 2026
  3. Pisco: An Isolation Bug Case Reduction and Deduplication FrameworkSiyang Weng, Hongyu Yang, Zirui Hu, Rong Zhang et al.VLDB 2026
  4. RISE: Rule-Driven SQL Dialect Translation via Query ReductionXudong Xie, Yuwei Zhang, Wensheng Dou, Yu Gao et al.ICSE 2026
  5. Dialect-Agnostic SQL Parsing via LLM-Based SegmentationJunwen An, Kabilan Mahathevan, Manuel RiggerSIGMOD 2026

Builds on7

  1. Finding bugs in database systems via query partitioningManuel Rigger, Zhendong SuOOPSLA 2020 · 116 citations
  2. APOLLO: Automatic Detection and Diagnosis of Performance Regressions in Database SystemsJinho Jung, Hong Hu, Joy Arulraj, Taesoo Kim et al.VLDB 2020 · 77 citations
  3. Griffin : Grammar-Free DBMS FuzzingJingzhou Fu, Jie Liang, Zhiyong Wu, Mingzhe Wang et al.ASE 2022 · 44 citations
  4. Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query SynthesisZongyin Hao, Quanfeng Huang, Chengpeng Wang, Jianfeng Wang et al.USENIX ATC 2023 · 26 citations
  5. SQUIRREL: Testing Database Management Systems with Language Validity and Coverage FeedbackRui Zhong, Yongheng Chen, Hong Hu, Hangfan Zhang et al.CCS 2020 · 5 citations

Related papers

  1. Efficiently Detecting DBMS Bugs through Bottom-up Syntax-based SQL GenerationYu Liang, Peng LiuNDSS 2026
  2. Scaling Automated Database System TestingSuyang Zhong, Manuel RiggerASPLOS 2026 · 4 citations
  3. DynSQL: Stateful Fuzzing for Database Management Systems with Complex and Valid SQL Query GenerationZu-Ming Jiang, Jia-Ju Bai, Zhendong SuUSENIX Security 2023
  4. Testing Database Engines via Pivoted Query SynthesisManuel Rigger, Zhendong SuOSDI 2020 · 150 citations
  5. Testing Database Systems via Differential Query ExecutionJiansen Song, Wensheng Dou, Ziyu Cui, Qianwang Dai et al.ICSE 2023 · 26 citations
Dusk over the sea between two cliffs drawn in fine vertical lines