Monotonic Properties of Completed Aggregates in Recursive Queries
Carlo Zaniolo, Ariyam Das, Jiaqi Gu, Youfu Li, Mingda li, Jin Wang

TL;DR
This paper explores the monotonic properties of aggregates in recursive queries, demonstrating how certain classes of aggregates can be safely used in recursion to improve efficiency and scalability in BigData systems.
Contribution
It provides a formal semantics for aggregates in recursion, enabling their safe use in scalable BigData query systems, extending previous work on monotonicity and stratification.
Findings
Aggregates often exhibit monotonicity in set-containment lattice.
PreM property allows equivalence to stratified programs with post-constraints.
Formal semantics supports efficient implementation in existing Datalog and SQL systems.
Abstract
The use of aggregates in recursion enables efficient and scalable support for a wide range of BigData algorithms, including those used in graph applications, KDD applications, and ML applications, which have proven difficult to be expressed and supported efficiently in BigData systems supporting Datalog or SQL. The problem with these languages and systems is that, to avoid the semantic and computational issues created by non-monotonic constructs in recursion, they only allow programs that are stratified with respect to negation and aggregates. Now, while this crippling restriction is well-justified for negation, it is frequently unjustified for aggregates, since (i) aggregates are often monotonic in the standard lattice of set-containment, (ii) the PreM property guarantees that programs with extrema in recursion are equivalent to stratified programs where extrema are used as…
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
TopicsLogic, Reasoning, and Knowledge · Data Management and Algorithms · Advanced Database Systems and Queries
