English

Covering the Relational Join

Databases 2020-03-24 v1

Abstract

In this paper, we initiate a theoretical study of what we call the join covering problem. We are given a natural join query instance QQ on nn attributes and mm relations (Ri)i[m](R_i)_{i \in [m]}. Let JQ= i=1mRiJ_{Q} = \ \Join_{i=1}^m R_i denote the join output of QQ. In addition to QQ, we are given a parameter Δ:1Δn\Delta: 1\le \Delta\le n and our goal is to compute the smallest subset TQ,ΔJQ\mathcal{T}_{Q, \Delta} \subseteq J_{Q} such that every tuple in JQJ_{Q} is within Hamming distance Δ1\Delta - 1 from some tuple in TQ,Δ\mathcal{T}_{Q, \Delta}. The join covering problem captures both computing the natural join from database theory and constructing a covering code with covering radius Δ1\Delta - 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 TQ,Δ|\mathcal{T}_{Q, \Delta}| in terms of the structure of QQ and value of Δ\Delta. One obvious approach to upper bound TQ,Δ|\mathcal{T}_{Q, \Delta}| 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 TQ,Δ|\mathcal{T}_{Q, \Delta}| for the arity two case. We prove lower bounds for TQ,Δ|\mathcal{T}_{Q, \Delta}| 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.

Cite

@article{arxiv.2003.09537,
  title  = {Covering the Relational Join},
  author = {Shi Li and Sai Vikneshwar Mani Jayaraman and Atri Rudra},
  journal= {arXiv preprint arXiv:2003.09537},
  year   = {2020}
}
R2 v1 2026-06-23T14:22:10.539Z