Conference item icon

Conference item

Semantic acyclicity under constraints

Abstract:
A conjunctive query (CQ) is semantically acyclic if it is equivalent to an acyclic one. Semantic acyclicity has been studied in the constraint-free case, and deciding whether a query enjoys this property is NP-complete. However, in case the database is subject to constraints such as tuple-generating dependencies (tgds) that can express, e.g., inclusion dependencies, or equality-generating dependencies (egds) that capture, e.g., functional dependencies, a CQ may turn out to be semantically acyclic under the constraints while not semantically acyclic in general. This opens avenues to new query optimization techniques. In this paper we initiate and develop the theory of semantic acyclicity under constraints. More precisely, we study the following natural problem: Given a CQ and a set of constraints, is the query semantically acyclic under the constraints, or, in other words, is the query equivalent to an acyclic one over all those databases that satisfy the set of constraints? We show that, contrary to what one might expect, decidability of CQ containment is a necessary but not sufficient condition for the decidability of semantic acyclicity. In particular, we show that semantic acyclicity is undecidable in presence of full tgds (i.e., Datalog rules). In view of this fact, we focus on the main classes of tgds for which CQ containment is decidable, and do not capture the class of full tgds, namely guarded, non-recursive and sticky tgds. For these classes we show that semantic acyclicity is decidable, and its complexity coincides with the complexity of CQ containment. In the case of egds, we show that semantic acyclicity is undecidable even over unary and binary predicates. When restricted to keys the problem becomes decidable (NP-complete) over such schemas. We finally consider the problem of evaluating a semantically acyclic query over a database that satisfies a set of constraints. For guarded tgds the evaluation problem is tractable. © Association Computing for Machinery
Publication status:
Published
Peer review status:
Reviewed (other)

Actions


Access Document


Publisher copy:
10.1145/2902251.2902302

Authors


More by this author
Institution:
University of Oxford
Division:
MPLS
Department:
Computer Science
Role:
Author


Publisher:
Association for Computing Machinery
Host title:
35th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems
Journal:
35th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems More from this journal
Pages:
343-354
Publication date:
2016-06-26
Acceptance date:
2016-03-05
Event location:
San Francisco, CA
Event start date:
2016-06-26
DOI:
ISBN:
9781450341912


Keywords:
Pubs id:
pubs:617892
UUID:
uuid:3a6b32a4-75b7-4734-9a21-bd5c4f3b3232
Local pid:
pubs:617892
Source identifiers:
617892
Deposit date:
2016-04-26

Terms of use



Views and Downloads






If you are the owner of this record, you can report an update to it here: Report update to this record

TO TOP