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.

TableColumnIts source
_state_flata flat columnthe state's top-level property, masked as the state masks it
_statea flat column (computed on it)the same
_state, _state_eventsstate, state_numbersthe state's document, whole: protected paths in it
_state_eventseventseach event's document, whole
_eventsbodythe event's document, whole
_state_mv, _events_mvas _state, _eventsthe 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.

Constructors

Link copied to clipboard
constructor(manifest: Manifest, database: String)

Functions

Link copied to clipboard
open override fun sourceOf(dataset: QueryDataset): QueryDatasetSource?
Link copied to clipboard
open override fun toString(): String