Static Typing Meets Adaptive Optimization: A Unified Approach to Recursive Queries
Writing correct and efficient recursive SQL queries is exceptionally challenging because recursive queries risk returning incorrect results, throwing runtime exceptions, or never terminating. Failures in recursive query execution fall into two categories: non-recoverable failures, such as nontermination or database error, which must be identified statically, and recoverable failures, which arise from incorrect assumptions about program behavior - for example, the optimal join order based on input relations may no longer be optimal after execution begins - leading to severe performance degradation.
Authors
- Martin Odersky (ORCID: https://orcid.org/0009-0005-3923-8993)
- Anna Herlihy (ORCID: https://orcid.org/0009-0005-8658-9569)
Institutions
- École Polytechnique Fédérale de Lausanne (CH)
Publication Details
- Published
- 2025-06-22
- DOI
- https://doi.org/10.1145/3735106.3736533
- Primary Topic
- Advanced Database Systems and Queries
- Type
- article
- Field-Weighted Citation Impact
- 0.00