Automated Verification of Query Equivalence Using Satisfiability Modulo Theories

被引:15
|
作者
Zhou, Qi [1 ]
Arulraj, Joy [1 ]
Navathe, Shamkant [1 ]
Harris, William [2 ]
Xu, Dong [3 ]
机构
[1] Georgia Inst Technol, Atlanta, GA 30332 USA
[2] Galois Inc, Portland, ME USA
[3] Alibaba Grp, Hangzhou, Zhejiang, Peoples R China
来源
PROCEEDINGS OF THE VLDB ENDOWMENT | 2019年 / 12卷 / 11期
基金
美国国家科学基金会;
关键词
D O I
10.14778/3342263.3342267
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Database-as-a-service offerings enable users to quickly create and deploy complex data processing pipelines. In practice, these pipelines often exhibit significant overlap of computation due to redundant execution of certain sub-queries. It is challenging for developers and database administrators to manually detect overlap across queries since they may be distributed across teams, organization roles, and geographic locations. Thus, we require automated cloud-scale tools for identifying equivalent queries to minimize computation overlap. State-of-the-art algebraic approaches to automated verification of query equivalence suffer from two limitations. First, they are unable to model the semantics of widely-used SQL features, such as complex query predicates and three-valued logic. Second, they have a computationally intensive verification procedure. These limitations restrict their efficacy and efficiency in cloud-scale database-as-a-service offerings. This paper makes the case for an alternate approach to determining query equivalence based on symbolic representation. The key idea is to effectively transform a wide range of SQL queries into first order logic formulae and then use satisfiability modulo theories to efficiently verify their equivalence. We have implemented this symbolic representation-based approach in EQUITAS. Our evaluation shows that EQUITAS proves the semantic equivalence of a larger set of query pairs compared to algebraic approaches and reduces the verification time by 27 x . We also demonstrate that on a set of 17,461 real-world SQL queries, it automatically identifies redundant execution across 11% of the queries. Our symbolic-representation based technique is currently deployed on Alibaba's MaxCompute database-as-a-service platform.
引用
收藏
页码:1276 / 1288
页数:13
相关论文
共 50 条
  • [31] A tutorial on satisfiability modulo theories - (Invited tutorial)
    de Moura, Leonardo
    Dutertre, Bruno
    Shankar, Natarajan
    COMPUTER AIDED VERIFICATION, PROCEEDINGS, 2007, 4590 : 20 - +
  • [32] Preface to special issue on satisfiability modulo theories
    Griggio, Alberto
    Rummer, Philipp
    FORMAL METHODS IN SYSTEM DESIGN, 2017, 51 (03) : 431 - 432
  • [33] Satisfiability modulo theories for process systems engineering
    Mistry, Miten
    D'Iddio, Andrea Callia
    Huth, Michael
    Misener, Ruth
    COMPUTERS & CHEMICAL ENGINEERING, 2018, 113 : 98 - 114
  • [34] Model Learning as a Satisfiability Modulo Theories Problem
    Smetsers, Rick
    Fiterau-Brostean, Paul
    Vaandrager, Frits
    LANGUAGE AND AUTOMATA THEORY AND APPLICATIONS (LATA 2018), 2018, 10792 : 182 - 194
  • [35] Efficient interpolant generation in Satisfiability Modulo Theories
    Cimatti, Alessandro
    Griggio, Alberto
    Sebastiani, Roberto
    TOOLS AND ALGORITHMS FOR THE CONSTRUCTION AND ANALYSIS OF SYSTEMS, 2008, 4963 : 397 - +
  • [36] Beyond boolean SAT: Satisfiability Modulo Theories
    Cimatti, Alessandro
    WODES' 08: PROCEEDINGS OF THE 9TH INTERNATIONAL WORKSHOP ON DISCRETE EVENT SYSTEMS, 2008, : 68 - 73
  • [37] Grounding Neural Inference with Satisfiability Modulo Theories
    Wang, Zifan
    Vijayakumar, Saranya
    Lu, Kaiji
    Ganesh, Vijay
    Jha, Somesh
    Fredriskon, Matt
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 36 (NEURIPS 2023), 2023,
  • [38] Stochastic Local Search for Satisfiability Modulo Theories
    Froehlich, Andreas
    Biere, Armin
    Wintersteiger, Christoph M.
    Hamadi, Youssef
    PROCEEDINGS OF THE TWENTY-NINTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2015, : 1136 - 1143
  • [39] Sets with Cardinality Constraints in Satisfiability Modulo Theories
    Suter, Philippe
    Steiger, Robin
    Kuncak, Viktor
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, 2011, 6538 : 403 - 418
  • [40] Proof Checking Technology for Satisfiability Modulo Theories
    Stump, Aaron
    ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2009, 228 : 121 - 133