Covering the Relational Join

03/21/2020
by   Shi Li, et al.
0

In this paper, we initiate a theoretical study of what we call the join covering problem. We are given a natural join query instance Q on n attributes and m relations (R_i)_i ∈ [m]. Let J_Q = _i=1^m R_i denote the join output of Q. In addition to Q, we are given a parameter Δ: 1≤Δ≤ n and our goal is to compute the smallest subset 𝒯_Q, Δ⊆ J_Q such that every tuple in J_Q is within Hamming distance Δ - 1 from some tuple in 𝒯_Q, Δ. The join covering problem captures both computing the natural join from database theory and constructing a covering code with covering radius Δ - 1 from coding theory, as special cases. We consider the combinatorial version of the join covering problem, where our goal is to determine the worst-case |𝒯_Q, Δ| in terms of the structure of Q and value of Δ. One obvious approach to upper bound |𝒯_Q, Δ| is to exploit a distance property (of Hamming distance) from coding theory and combine it with the worst-case bounds on output size of natural joins (AGM bound hereon) due to Atserias, Grohe and Marx [SIAM J. of Computing'13]. Somewhat surprisingly, this approach is not tight even for the case when the input relations have arity at most two. Instead, we show that using the polymatroid degree-based bound of Abo Khamis, Ngo and Suciu [PODS'17] in place of the AGM bound gives us a tight bound (up to constant factors) on the |𝒯_Q, Δ| for the arity two case. We prove lower bounds for |𝒯_Q, Δ| using well-known classes of error-correcting codes e.g, Reed-Solomon codes. We can extend our results for the arity two case to general arity with a polynomial gap between our upper and lower bounds.

READ FULL TEXT
research
11/22/2019

Covering Codes for Insertions and Deletions

A covering code is a set of codewords with the property that the union o...
research
06/24/2023

Join Size Bounds using Lp-Norms on Degree Sequences

Estimating the output size of a join query is a fundamental yet longstan...
research
11/10/2017

Size bounds and query plans for relational joins

Relational joins are at the core of relational algebra, which in turn is...
research
09/26/2019

Box Covers and Domain Orderings for Beyond Worst-Case Join Processing

Recent beyond worst-case optimal join algorithms Minesweeper and its gen...
research
10/31/2017

The Stretch Factor of Hexagon-Delaunay Triangulations

The problem of computing the exact stretch factor (i.e., the tight bound...
research
03/18/2020

Worst-Case Optimal Covering of Rectangles by Disks

We provide the solution for a fundamental problem of geometric optimizat...
research
04/24/2023

Applications of Information Inequalities to Database Theory Problems

The paper describes several applications of information inequalities to ...

Please sign up or login with your details

Forgot password? Click here to reset