自上而下展开的形式化
A Formalization of Top-Down Unnesting
AI总结:
研究SQL查询中相关子查询的评估难题,核心方法是引入单遍自上而下的展开算法,主要贡献是通过定义操作符语义,正式证明该算法的正确性,解决了此前工作缺少形式化证明的问题。
摘要:
编写SQL查询时,使用相关子查询通常很方便。但对数据库引擎来说,高效评估这些相关查询很难。查询优化器会尝试消除相关性,即展开。近期工作引入了用于展开任意SQL查询的单遍自上而下算法,但未给出正确性的形式化证明。本文通过正式定义操作符语义并证明展开算法正确,提供了缺失的形式化。
英文摘要:
When writing SQL queries, it is often convenient to use correlated subqueries. However, for the database engine, these correlated queries are very difficult to evaluate efficiently. The query optimizer will therefore try to eliminate the correlations, a process referred to as unnesting. Recent work has introduced a single pass top-down algorithm for unnesting arbitrary SQL queries. That work did not include a formal proof of correctness, though. In this work we provide the missing formalization by formally defining the operator semantics and proving that the unnesting algorithm is correct.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。