跳到主要导航 跳到搜索 跳到主要内容

Semantic Conformance Testing of Relational DBMS

  • Shuang Liu
  • , Chenglin Tian
  • , Jun Sun
  • , Ruifeng Wang
  • , Wei Lu*
  • , Yongxin Zhao
  • , Yinxing Xue
  • , Junjie Wang
  • , Xiaoyong Du
  • *此作品的通讯作者
  • Renmin University of China
  • Beijing University of Posts and Telecommunications
  • Singapore Management University
  • Tianjin University
  • University of Science and Technology of China

科研成果: 期刊稿件会议文章同行评审

摘要

Relational DBMS implementations are expected to adhere to SQL standards. However, there are currently no tools available that can automatically verify this conformance. The main reasons are twofold. First, the SQL standard specification, documented in natural language, tends to be ambiguous and is not directly executable. Second, it is difficult to generate test queries that thoroughly coverall aspects, e.g., keywords and parameters, defined in the SQL specification. In this work, we introduce the first method for semantic conformance testing of RDBMSs. Our contributions are threefold. Firstly, we formally define the denotational semantics of SQL and implement them in Prolog, creating an executable reference RDBMS for differential testing against existing RDBMSs. Secondly, we propose three coverage criteria based on these formal semantics, along with a coverage-guided query generation algorithm that effectively generates queries achieving high semantic coverage. Lastly, we apply our approach to six widely-used and thoroughly tested RDBMSs, e.g., MySQL, PostgreSQL and Ocean Base, uncovering 19bugs and 13 inconsistencies, all of which are confirmed by RDBMS developers.

源语言英语
页(从-至)850-862
页数13
期刊Proceedings of the VLDB Endowment
18
3
DOI
出版状态已出版 - 2025
活动51st International Conference on Very Large Data Bases, VLDB 2025 - London, 英国
期限: 1 9月 20255 9月 2025

指纹

探究 'Semantic Conformance Testing of Relational DBMS' 的科研主题。它们共同构成独一无二的指纹。

引用此