Scaling Automated Database System Testing
Suyang Zhong, Manuel Rigger
摘要
Recently, various automated testing approaches have been proposed that use specialized test oracles to find hundreds of logic bugs in mature, widely-used Database Management Systems (DBMSs). These test oracles require database and query generators, which must account for the often significant differences between the SQL dialects of these systems. Since it can take weeks to implement such generators, many DBMS developers are unlikely to invest the time to adopt such automated testing approaches. In short, existing approaches fail to scale to the plethora of DBMSs. In this work, we present both a vision and a platform, SQLancer++, to apply test oracles to any SQL-based DBMS that supports a subset of common SQL features. Our technical core contribution is a novel architecture for an adaptive SQL statement generator. This adaptive SQL generator generates SQL statements with various features, some of which might not be supported by the given DBMS, and then learns through interaction with the DBMS, which of these are understood by the DBMS. Thus, over time, the generator will generate mostly valid SQL statements. We evaluated SQLancer++ across 18 DBMSs and discovered a total of 196 unique, previously unknown bugs, of which 180 were fixed after we reported them. While SQLancer++ is the first major step towards scaling automated DBMS testing, various follow-up challenges remain.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Detecting Data-Type-Related Logic Bugs in Relational DBMSs via Compatible Database Construction 引用了 Finding bugs in database systems via query partitioning
- Detecting Data-Type-Related Logic Bugs in Relational DBMSs via Compatible Database Construction 引用了 Detecting optimization bugs in database engines via non-optimizing reference engine construction
- Detecting Data-Type-Related Logic Bugs in Relational DBMSs via Compatible Database Construction 引用了 Testing Database Engines via Pivoted Query Synthesis
- Detecting Data-Type-Related Logic Bugs in Relational DBMSs via Compatible Database Construction 引用了 Griffin : Grammar-Free DBMS Fuzzing
- Finding bugs in database systems via query partitioning 引用了 Detecting optimization bugs in database engines via non-optimizing reference engine construction
- Finding bugs in database systems via query partitioning 引用了 Testing Database Engines via Pivoted Query Synthesis
- Detecting optimization bugs in database engines via non-optimizing reference engine construction 引用了 Testing Database Engines via Pivoted Query Synthesis
- Automated Discovery of Test Oracles for Database Management Systems Using LLMs 引用了 Finding bugs in database systems via query partitioning
- Automated Discovery of Test Oracles for Database Management Systems Using LLMs 引用了 Detecting optimization bugs in database engines via non-optimizing reference engine construction
- Automated Discovery of Test Oracles for Database Management Systems Using LLMs 引用了 Testing Database Engines via Pivoted Query Synthesis
- Automated Discovery of Test Oracles for Database Management Systems Using LLMs 引用了 Griffin : Grammar-Free DBMS Fuzzing
- Dialect-Agnostic SQL Parsing via LLM-Based Segmentation 引用了 Finding bugs in database systems via query partitioning
- Dialect-Agnostic SQL Parsing via LLM-Based Segmentation 引用了 Detecting optimization bugs in database engines via non-optimizing reference engine construction
- Griffin : Grammar-Free DBMS Fuzzing 引用了 Testing Database Engines via Pivoted Query Synthesis
引用它的顶会 Paper3
- Automated Discovery of Test Oracles for Database Management Systems Using LLMsQiuyang Mang, Runyuan He, Suyang Zhong, Xiaoxuan Liu 等SIGMOD 2026 · 1 次引用
- Detecting Data-Type-Related Logic Bugs in Relational DBMSs via Compatible Database ConstructionJiansen Song, Wensheng Dou, Yingying Zheng, Yu Gao 等VLDB 2026
- Dialect-Agnostic SQL Parsing via LLM-Based SegmentationJunwen An, Kabilan Mahathevan, Manuel RiggerSIGMOD 2026
它引用的 Paper25
- Testing Database Engines via Pivoted Query SynthesisManuel Rigger, Zhendong SuOSDI 2020 · 150 次引用
- Finding bugs in database systems via query partitioningManuel Rigger, Zhendong SuOOPSLA 2020 · 116 次引用
- Detecting optimization bugs in database engines via non-optimizing reference engine constructionManuel Rigger, Zhendong SuFSE 2020 · 104 次引用
- Learning a Partitioning Advisor for Cloud DatabasesBenjamin Hilprecht, Carsten Binnig, Uwe RöhmSIGMOD 2020 · 64 次引用
- Griffin : Grammar-Free DBMS FuzzingJingzhou Fu, Jie Liang, Zhiyong Wu, Mingzhe Wang 等ASE 2022 · 44 次引用
相关 Paper
- Pinolo: Detecting Logical Bugs in Database Management Systems with Approximate Query SynthesisZongyin Hao, Quanfeng Huang, Chengpeng Wang, Jianfeng Wang 等USENIX ATC 2023 · 26 次引用
- Finding Logic Bugs in Spatial Database Engines via Affine Equivalent InputsWenjing Deng, Qiuyang Mang, Chengyu Zhang, Manuel RiggerSIGMOD 2025 · 3 次引用
- Testing Database Engines via Query Plan GuidanceJinsheng Ba, Manuel RiggerICSE 2023 · 39 次引用
- Mozi: Discovering DBMS Bugs via Configuration-Based Equivalent TransformationJie Liang, Zhiyong Wu, Jingzhou Fu, Mingzhe Wang 等ICSE 2024 · 18 次引用
- Detecting Logical Bugs of DBMS with Coverage-based GuidanceYu Liang, Song Liu, Hong HuUSENIX Security 2022
