[Paper Review] Semantically Correct Query Answers in the Presence of Null Values
This paper proposes a novel semantics for consistent query answering (CQA) in databases containing null values, where repairs are performed using nulls to restore referential integrity without creating infinite inconsistency cycles. It establishes decidability of CQA for universal, foreign key, and NOT NULL constraints—even in cyclic cases—by modeling repairs as stable models of disjunctive logic programs, ensuring compatibility with commercial DBMSs and enabling efficient query evaluation with tight complexity bounds.
For several reasons a database may not satisfy a given set of integrity constraints(ICs), but most likely most of the information in it is still consistent with those ICs; and could be retrieved when queries are answered. Consistent answers to queries wrt a set of ICs have been characterized as answers that can be obtained from every possible minimally repaired consistent version of the original database. In this paper we consider databases that contain null values and are also repaired, if necessary, using null values. For this purpose, we propose first a precise semantics for IC satisfaction in a database with null values that is compatible with the way null values are treated in commercial database management systems. Next, a precise notion of repair is introduced that privileges the introduction of null values when repairing foreign key constraints, in such a way that these new values do not create an infinite cycle of new inconsistencies. Finally, we analyze how to specify this kind of repairs of a database that contains null values using disjunctive logic programs with stable model semantics.
Motivation & Objective
- To address the challenge of consistent query answering (CQA) in databases with null values, where traditional repair methods fail due to infinite inconsistency cycles.
- To define a precise semantics for integrity constraint (IC) satisfaction in the presence of nulls that aligns with commercial DBMS behavior and prevents new inconsistencies from being introduced by nulls.
- To introduce a new repair semantics that prioritizes null value introduction for fixing foreign key violations, avoiding infinite repair cycles.
- To enable CQA for a broad class of ICs—including cyclic referential constraints—by specifying repairs as stable models of disjunctive logic programs.
- To optimize repair program specifications for classes of ICs with lower data complexity, such as denial constraints and acyclic foreign key sets.
Proposed method
- Introduces a new semantics for IC satisfaction in null-containing databases, ensuring that tuples with nulls in relevant attributes do not trigger new inconsistencies.
- Defines a repair operation that allows the use of null values to fix referential integrity constraints, with a formal condition to prevent infinite cycles of new inconsistencies.
- Models repairs as stable models of disjunctive logic programs, with a modified program construction that recovers the one-to-one correspondence between stable models and repairs for acyclic foreign key constraints.
- Applies the stable model semantics to specify consistent query answers via cautious reasoning, ensuring answers are valid across all repairs.
- Introduces a transformation to non-disjunctive programs (sh(Π)) for HCF (head-cycle-free) programs, enabling complexity analysis and optimization for certain IC classes.
- Establishes that CQA under this semantics is decidable and has tight complexity bounds, matching the intrinsic complexity of CQA (Π²₂-complete), with lower bounds for specific IC classes.
Experimental results
Research questions
- RQ1How can integrity constraints be semantically satisfied in databases containing null values in a way that is consistent with commercial DBMSs and prevents infinite inconsistency propagation?
- RQ2What is a repair semantics that allows the use of null values to fix foreign key violations without creating new inconsistencies or infinite repair cycles?
- RQ3Can consistent query answers be computed efficiently for databases with nulls and complex constraints, including cyclic referential constraints?
- RQ4How can repairs be formally specified using stable model semantics of disjunctive logic programs to ensure correctness and completeness?
- RQ5For which classes of integrity constraints can the data complexity of CQA be reduced below the general Π²₂ upper bound?
Key findings
- The proposed semantics for IC satisfaction ensures that null values in foreign key attributes do not generate new inconsistencies, enabling safe and finite repair processes.
- The new repair semantics makes CQA decidable for universal constraints, foreign key constraints (including cyclic ones), and NOT NULL constraints.
- Repairs for acyclic foreign key constraints can be correctly specified as stable models of disjunctive logic programs, restoring the one-to-one correspondence between stable models and repairs.
- For denial constraints and other acyclic IC classes, the data complexity of CQA is reduced to coNP, matching known lower bounds and enabling efficient evaluation.
- The method supports consistent query answering in virtual data integration and other settings where full database repair is infeasible or impossible.
- The framework is compatible with commercial DBMSs and provides a practical foundation for implementing CQA in real-world systems with nulls.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.