Mixed-depth rollups (one subquery per fact table)
MVP rollups have exactly one fact table F (Issue 16). Mixed-depth (count models and avg ratings in one type) and extra arms are report-e. COUNT(DISTINCT) is not a fan-out fix.
The engine is one subquery (or LATERAL) per fact table, joined back to grain. That is a different generator than measure Phase A's FROM grain LEFT JOIN … GROUP BY grain. It reopens FILTER placement and zero-fact tails per subquery. Issue 17 is already frozen as downstream: a clause on table T applies to aggregates whose source is T or further down the path toward that subquery's F. Do not invent all-to-all (a ratings window must not land on COUNT(models.id)).
Do not land this as a patch on 08b. Named consumer: a :top-contributors that shows model count and avg rating together. Until then, those are two types.
- Slot
- 15900
- Status
- 10 Open
- Tags
- backend, compiler
- Contributors
- Donnie