ClickHouseDatasetSources
What the tables the ClickHouse Sink writes for the aggregates of manifest in database hold, as the Sink describes them in wow_catalog: the same function (CatalogEntries) over the same Manifest, so a dataset over one of them inherits the protection its state declares (@Sensitive), never a second copy of it.
| Table | Column | Its source |
|---|---|---|
_state_flat | a flat column | the state's top-level property, masked as the state masks it |
_state | a flat column (computed on it) | the same |
_state, _state_events | state, state_numbers | the state's document, whole: protected paths in it |
_state_events | events | each event's document, whole |
_events | body | the event's document, whole |
_state_mv, _events_mv | as _state, _events | the views that fill them (TO), which read as their target |
A column of a whole document is QueryDatasetSource.Opaque when its source protects a path in it, as is state_numbers when the state protects a top-level value. Each of these tables holds one aggregate's rows, its id in aggregate_id, and each row's tenant in tenant_id (QueryDatasetSource.aggregate, QueryDatasetSource.tenant), as the Sink writes them (ClickHouseSinkSchema), and says whether the Manifest's aggregate declares access attributes (QueryDatasetSource.declaresAccess). Another table, or a table of another database, is unknown (null), as is a table name two aggregates of the Manifest share.