Safe Subjoins in Acyclic Joins
Foto N. Afrati

TL;DR
This paper characterizes safe subjoins in acyclic joins with projections, showing they correspond to subtrees in a join parse tree, and provides an algorithm to identify them, reducing intermediate relation size issues.
Contribution
It introduces the concept of safe subjoins in acyclic joins with projections and offers a simple characterization and an algorithm to identify such subjoins.
Findings
Safe subjoins correspond to subtrees in a join parse tree.
The paper provides an algorithm to find safe subjoins.
Safe subjoins guarantee no dangling tuples on fully reduced databases.
Abstract
It is expensive to compute joins, often due to large intermediate relations. For acyclic joins, monotone join expressions are guaranteed to produce intermediate relations not larger than the size of the output of the join when it is computed on a fully reduced database. Any subexpression of an acyclic join does not offer this guarantee, as it is easy to prove. In this paper, we consider joins with projections too and we ask the question whether we can characterize join subexpressions that produce, on every fully reduced database, an output without dangling tuples (which translates, in the case of joins without projections, to an output of size not larger than the size of the output of the join). We call such a subexpression a safe subjoin. Surprisingly, we prove that there is a simple characterization which is the following: A subjoin is safe if and only if there is a parse tree of the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Database Systems and Queries · Logic, Reasoning, and Knowledge · Advanced Algebra and Logic
