2018
DOI: 10.14778/3236187.3236200
|View full text |Cite
|
Sign up to set email alerts
|

Axiomatic foundations and algorithms for deciding semantic equivalences of SQL queries

Abstract: Deciding the equivalence of SQL queries is a fundamental problem in data management. As prior work has mainly focused on studying the theoretical limitations of the problem, very few implementations for checking such equivalences exist. In this paper, we present a new formalism and implementation for reasoning about the equivalences of SQL queries. Our formalism, Usemiring, extends SQL's semiring semantics with unbounded summation and duplicate elimination. U-semiring is defined using only very few axioms and … Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

1
42
0

Year Published

2019
2019
2024
2024

Publication Types

Select...
4
2
2

Relationship

0
8

Authors

Journals

citations
Cited by 41 publications
(43 citation statements)
references
References 38 publications
1
42
0
Order By: Relevance
“…Since our goal is to synthesize a new version of the program that is equivalent to a previous version, this paper is particularly related to verification techniques for checking Synthesizing Database Programs for Schema Refactoring PL, 2019, USA equivalence [11-13, 52, 54]. Most of these papers focus on equivalence between individual SQL queries [11][12][13]52]. The only work that addresses the problem of verifying equivalence between entire database programs is Mediator, which automatically infers a bisimulation invariant between the two programs [54].…”
Section: Related Workmentioning
confidence: 99%
“…Since our goal is to synthesize a new version of the program that is equivalent to a previous version, this paper is particularly related to verification techniques for checking Synthesizing Database Programs for Schema Refactoring PL, 2019, USA equivalence [11-13, 52, 54]. Most of these papers focus on equivalence between individual SQL queries [11][12][13]52]. The only work that addresses the problem of verifying equivalence between entire database programs is Mediator, which automatically infers a bisimulation invariant between the two programs [54].…”
Section: Related Workmentioning
confidence: 99%
“…State-of-the-art automated tools for determining QE adopt algebraic approaches [51,26]. While COSETTE uses K-relations for representing SQL queries, UDP leverages U-semirings.…”
Section: Challenges For Algebraic Approachesmentioning
confidence: 99%
“…Lastly, they cannot model the semantics of certain SQL operators (e.g., aggregate functions and different types of OUTER JOIN). These limitations restrict the set of queries that can be supported by UDP's proof assistant [26].…”
Section: Challenges For Algebraic Approachesmentioning
confidence: 99%
See 1 more Smart Citation
“…However, if we first inline the WITH clause and then find edits, two edits would be required. 4 Hence when applying edits, we should deduct marks based on the edits that would have been required on the original student query. In the space of edits we consider, other syntactic canonicalizations do not increase the edit distance.…”
Section: Shortest Path Algorithmmentioning
confidence: 99%