Commit 1ef4e3b
committed
chore(clickhouse): bring the AI_EVENTS satellite under declarative HCL
Model the AI_EVENTS role in posthog/clickhouse/hcl/ (the third managed role
after OPS and LOGS), so its schema is captured declaratively and check.sh
validates it.
Env layering follows the actual topology: local/hobby run the MSK ingest variant
(kafka_ai_events_json + ai_events_json_mv), US/EU run WarpStream
(kafka_ai_events_json_ws + ai_events_json_ws_mv, MSK dropped by migration 0248),
and prod-eu additionally carries sharded_ai_events. person/person_distinct_id2
are Distributed shims (0240) owned by the person domain and left unmanaged. dev
composes only the shared objects (per the current dump).
Goldens are generated from the layers; the local golden was verified against a
live multinode ai_events node (introspect + diff = no drift beyond the known
out-of-band set). prod-us/prod-eu goldens are authored from the captured prod
dumps.1 parent 6eff786 commit 1ef4e3b
12 files changed
Lines changed: 8218 additions & 1 deletion
File tree
- posthog/clickhouse/hcl
- golden
- roles/ai_events
- local
- prod-eu
- prod
- sql
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
36 | 47 | | |
37 | 48 | | |
38 | 49 | | |
39 | | - | |
40 | 50 | | |
0 commit comments