Automated Reasoning of Database Queries

dc.contributor.advisorSuciu, Dan
dc.contributor.authorChu, Shumo
dc.date.accessioned2019-10-15T22:57:07Z
dc.date.available2019-10-15T22:57:07Z
dc.date.issued2019-10-15
dc.date.submitted2019
dc.descriptionThesis (Ph.D.)--University of Washington, 2019
dc.description.abstractFrom booking air tickets to analyzing astronomy datasets, database queries are pervasive in people’s work and life. This thesis describes Cosette, the first tool for automated reasoning the equivalences of SQL queries. The core of Cosette is a formal semantics of SQL based on semirings. This semantics covers major SQL features, including sophisticated ones such as grouping, aggregate, correlated sub- queries, and integrity constraints. Also, this semantics is denotational and only adds a few equational axioms, as the interpretation of SQL, to semirings. Then, to check the equivalences, Cosette uses this semantics to encode a pair of input SQL queries in both an interactive theorem prover and a constraint solver. In the end, Cosette will either certify their equivalences using a sound decision procedure implemented in a theorem prover that covers the known decidable fragment of SQL, or show their inequivalence by providing a counter-example. Empirical studies show that Cosette can decide the equivalence or provide counter example for a wide range of practical SQL queries collected from database literature, real-world optimizer rules and bugs, and data management class homework assignment from UW.
dc.embargo.termsOpen Access
dc.format.mimetypeapplication/pdf
dc.identifier.otherChu_washington_0250E_20516.pdf
dc.identifier.urihttp://hdl.handle.net/1773/44777
dc.language.isoen_US
dc.rightsCC BY-SA
dc.subjectAutomated Reasoning
dc.subjectInteractive Theorem Proving
dc.subjectSemantics
dc.subjectSMT Solver
dc.subjectSQL
dc.subjectComputer science
dc.subject.otherComputer science and engineering
dc.titleAutomated Reasoning of Database Queries
dc.typeThesis

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
Chu_washington_0250E_20516.pdf
Size:
867.99 KB
Format:
Adobe Portable Document Format