datalog: org-chart + transitive headcount demo (219/219)
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 27s

Adds dl-demo-org-rules: (subordinate Mgr Emp) over a (manager
EMP MGR) graph, and (headcount Mgr N) using count aggregation
grouped by manager. Demonstrates real-world hierarchy queries
(e.g. "everyone reporting up to the CEO") + per-manager rollup.

3 new demo tests: transitive subordinates of CEO (5 entries),
CEO headcount, and direct manager headcount.
This commit is contained in:
2026-05-08 10:24:10 +00:00
parent de734b27b8
commit e0c7de1a1c
4 changed files with 62 additions and 7 deletions

View File

@@ -1,8 +1,8 @@
{
"lang": "datalog",
"total_passed": 216,
"total_passed": 219,
"total_failed": 0,
"total": 216,
"total": 219,
"suites": [
{"name":"tokenize","passed":26,"failed":0,"total":26},
{"name":"parse","passed":18,"failed":0,"total":18},
@@ -14,7 +14,7 @@
{"name":"aggregates","passed":19,"failed":0,"total":19},
{"name":"api","passed":20,"failed":0,"total":20},
{"name":"magic","passed":22,"failed":0,"total":22},
{"name":"demo","passed":18,"failed":0,"total":18}
{"name":"demo","passed":21,"failed":0,"total":21}
],
"generated": "2026-05-08T10:21:54+00:00"
"generated": "2026-05-08T10:23:54+00:00"
}