arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.15751cs.DB
收藏

不再有 Nulls!

No More Nulls!

Yisu Remy Wang

AI总结:

针对 SQL 中 nulls 带来的问题,提出完全消除 nulls 的 Columnar Semantics,并发布 MIA 基准以评估缺失信息的处理方案。

摘要:

自 SQL 问世以来,nulls 一直让数据库用户和构建者感到困扰。编写 SQL 的人必须小心翼翼地防范 nulls 引起的意外结果,而构建数据库引擎的人则不断努力实现 3 值逻辑的微妙语义。鉴于关系模型已经提供了一种表示缺失信息的方法,即通过关系中元组的缺失,人们可能会退一步问:“nulls 真的必要吗?”我们回答:“不!”,并提出了一种完全消除 nulls 的 SQL 新语义。我们的语义称为 Columnar Semantics,它与标准的 3 值逻辑语义一样具有表现力,并且在数据和查询无 null 时表现相同。在两种语义存在差异的地方,Columnar Semantics 会产生更简单的查询。为了评估 Columnar Semantics 及任何其他替代语义或查询语言,我们提出了 MIA (Missing Information Artifacts),这是一个用于处理缺失信息的查询和数据集集合,并邀请社区做出贡献。

英文摘要:

Since the inception of SQL, nulls have frustrated database users and builders alike. Those writing SQL must painstakingly guard their queries against surprising results caused by nulls, while those building database engines constantly struggle to implement the subtle semantics of 3-valued logic. Given that the relational model already provides a way to represent missing information, namely, with the absence of a tuple in a relation, one may step back and ask:"Are nulls really necessary?" We answer:"No!" by proposing a new semantics for SQL that completely eliminates nulls. Our semantics, called Columnar Semantics, is as expressive as the standard 3-valued logic semantics, and behaves the same when the data and query are null-free. Where the two semantics differ, Columnar Semantics results in simpler queries. To evaluate Columnar Semantics and any other alternative semantics or query languages, we propose MIA (Missing Information Artifacts), a collection of queries and data sets for handling missing information, and invite contributions from the community.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑