Lune

ICDE2026顶会

LLMSQLMUTATOR: LLM-Powered Test Case Generation for Database Using Bug Reports

Chenglin Tian, Chaofan Li, Yawen Li, Yingxia Shao

2026年份

摘要

Relational Database Management Systems (DBMSs) are fundamental to modern software infrastructure, yet their inherent complexity and continuous evolution introduce critical defects that compromise data integrity and system reliability. While existing syntax-based and mutation-based automated testing approaches have demonstrated utility in DBMS validation, they suffer from three significant limitations, that are low quality seed SQLs, lack of bug knowledge, and ignorance of fine-grained constraints. To address these limitations, we propose LLM-SQLMutator, an innovative mutation-based automated DBMS testing tool that leverages large language models (LLMs) and bug reports. LLMSQLMUTATOR extracts the SQL statements from the bug report as mutation seeds, and extracts bug patterns and root causes from the bug reports as mutation guidance. Considering the semantic understanding capability of LLMs, we introduce bug-driven SQL mutation which uses LLMs to perform syntax-aware directed mutations on seed SQLs under the guidance of the bug knowledge. Finally, we propose the LLMbased semantic validation that uses database metadata as the basic validation knowledge and dynamically expand validation rules via LLMs, thereby helping LLMSQLMutator achieve comprehensive semantic validation. Extensive evaluations across six popular relational DBMSs demonstrate the advantages of LLMSQLMutator, and it detects 27 confirmed bugs.

问问这篇 Paper

问问你的智能体。

Lune 读过与它相关的顶会 Paper,每个回答都会注明依据哪几篇。

可以从这些问题问起

智能体调用

Lunesearch_papers

在 Lune 里问

免费开始,无需绑卡

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖