Semantic Conformance Testing of Relational DBMS

计算机科学 一致性测试 数据库 操作系统 标准化
作者
Shuang Liu,Chenglin Tian,Jun Sun,Ruifeng Wang,Wei Lu,Yongxin Zhao,Yinxing Xue,Junjie Wang,Xiaoyong Du
出处
期刊:Proceedings of the VLDB Endowment [Association for Computing Machinery]
卷期号:18 (3): 850-862
标识
DOI:10.14778/3712221.3712247
摘要

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 cover all 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 OceanBase, uncovering 19 bugs and 13 inconsistencies, all of which are confirmed by RDBMS developers.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
傻瓜子发布了新的文献求助10
刚刚
慧慧完成签到,获得积分10
1秒前
smile发布了新的文献求助10
1秒前
科研通AI5应助oyy采纳,获得10
1秒前
1秒前
斯文败类应助追寻紫安采纳,获得10
1秒前
2秒前
冷酷豌豆完成签到,获得积分10
2秒前
地平完成签到,获得积分10
4秒前
LM发布了新的文献求助10
4秒前
4秒前
泽上发布了新的文献求助10
5秒前
幽默的文龙完成签到,获得积分20
5秒前
5秒前
廖天佑完成签到,获得积分0
6秒前
phoenix完成签到,获得积分0
7秒前
wxr发布了新的文献求助10
7秒前
现代的丸子完成签到,获得积分10
8秒前
高高ai完成签到,获得积分10
8秒前
南楼青主完成签到,获得积分10
9秒前
10秒前
10秒前
11秒前
Akim应助shanshan采纳,获得10
11秒前
拼搏的绿旋完成签到,获得积分10
11秒前
南楼青主发布了新的文献求助10
12秒前
12秒前
JamesPei应助天空没有极限采纳,获得10
12秒前
13秒前
13秒前
科研通AI5应助帅气雪糕采纳,获得10
14秒前
MechaniKer发布了新的文献求助10
15秒前
16秒前
猩心发布了新的文献求助30
17秒前
Yan完成签到,获得积分10
17秒前
17秒前
天空没有极限完成签到,获得积分10
18秒前
mcc发布了新的文献求助10
19秒前
Triumph关注了科研通微信公众号
19秒前
谢耳朵发布了新的文献求助30
20秒前
高分求助中
Les Mantodea de Guyane Insecta, Polyneoptera 2500
Technologies supporting mass customization of apparel: A pilot project 450
Brain and Heart The Triumphs and Struggles of a Pediatric Neurosurgeon 400
Cybersecurity Blueprint – Transitioning to Tech 400
Mixing the elements of mass customisation 400
Периодизация спортивной тренировки. Общая теория и её практическое применение 310
Nucleophilic substitution in azasydnone-modified dinitroanisoles 300
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3783657
求助须知:如何正确求助?哪些是违规求助? 3328839
关于积分的说明 10238741
捐赠科研通 3044202
什么是DOI,文献DOI怎么找? 1670861
邀请新用户注册赠送积分活动 799939
科研通“疑难数据库(出版商)”最低求助积分说明 759171