Comprehending queries over finite maps
summary
Extends the nested relational calculus with first-class finite maps, grouping, lookups and group-wise aggregation and proves strong normalization, producing normal forms that translate directly to SQL (group by + select) rather than inefficient correlated key-value queries. Shows the extended calculus composes with shredding to SQL so nested-typed queries can be executed by a DBMS, supports mixing sets and bags, and documents a Links implementation on GitHub; shredding is proved but not yet shipped, and the approach yields noticeably better SQL performance.
AI-written summary · about
chapters (8)
- 0:00Language-integrated SQL queries
- 6:16Language-integrated query matters
- 8:23Nested relational calculus
- 12:05Calculus with grouping and aggregation
- 21:07Normal forms and SQL translation
- 26:55Advantages over prior approaches
- 28:43Implementation and future work
- 29:26Q&A
related talks
48mCompositional, Expressive, Performant Database Queries: Choose 3
50mModern SQL: Evolution of a dinosaur
47mModern SQL: Evolution of a Dinosaur
45mMore Than a Query Language: SQL in the 21st Century
58mThe Mother of All Query Languages: SQL in the 21st Century
01h 00mModern SQL: Evolution of a Dinosaur
18mTranslating canonical SQL to imperative code in Coq
27mFunctional Programming on Top of SQL Engines
