Package-level declarations
Types
Approves, as an approver, the publication of the dataset's definition that was requested: it is published.
One compiled version of a dataset (-2): the ClickHouse view of database that serves it, the ddl that creates it (audited with the publication), and what a query node needs to serve it without asking the catalog: its scope, its fields with their protection and lineage, its identity and eventTime columns. sources are the catalog's sources it reads; approvals say why publishing it takes an approver, empty when it does not. columns are the view's columns as the warehouse created them, their warehouse types: what a query node declares each field as; empty until the publication creates the view. select is the query the view is, which the catalog asks the warehouse to describe before it publishes a recompilation.
A column of the dataset, named as queries read it: the value from a source (<alias>.<column>[.<path>]), or the expression computed from such values. Its protection follows its lineage: the highest of the values it reads, with their mask when it reads one; sensitivity, when given, decides it instead, and only an approver lets it be lower than the lineage says.
The dataset name of context was drafted from definition, which reads the catalog's sources.
A column of a dataset's view: its name and title, the sensitivity its lineage gives it (null when it is not sensitive), the values it reads (inputs, each <source id>/<column>[.<path>]), whether it is computed, and the aggregate its value is the id of (reference), as the source it is read from says: a row's action on that aggregate goes to the service that owns it.
Brings the source alias in, matched by on: each key pairs a column of the sources before it (DatasetJoinKey.left) with one of alias (DatasetJoinKey.right).
How a join keeps the rows of the left side that have no match on the right.
The dataset's published definition needs revision, for problems: it no longer compiles against the catalog, or it compiles into other columns than its published version has, or it now takes an approver. While the published version's view still gives the columns it was published with, it goes on serving; otherwise its queries are answered wow.query.dataset-unavailable until a revision is published or its sources come back.
The requested publication was refused, for reason.
Publishing definition takes an approver, for reasons: it is published once one approves.
definition was published as the dataset's version DatasetArtifact.version, its view created: artifact; recompiled when the catalog published it after a source changed.
The dataset is retired: its queries stop; version was the one they read.
The dataset's definition is now definition, which reads the catalog's sources.
The dataset's published version version compiles again: its queries read it again.
The protection a column is given: at level, or none when level is null, its mask keeping keepPrefix and keepSuffix characters.
Where a dataset is in its life.
A published version of a dataset: its compiled artifact and the definition it was compiled from.
The retired dataset's views were dropped from the warehouse.
Drafts the dataset name of context from its definition (-2): the dataset's id is me.ahoo.wow.analytics.catalog.api.AnalyticsCatalogContext.datasetIdOf of context and name, the name its queries read it by. The definition is checked against the catalog as it is now: its sources are there and usable, its references name their columns, its joins key on the tenant, its expressions use only the functions allowed.
Drops the views of a dataset retired for the retention; the catalog schedules it when it retires one, and only that schedule sends it: internal.
Publishes the dataset's definition as its next version (-2): compiled against the catalog as it is now into the version's own view, ds_<context>_<name>_<digest>_v<N> (the digest that of the exact id, so ids that read the same once lower-cased and made safe have views of their own), which the publication creates in the warehouse (the only way the catalog changes the warehouse, audited by the event); queries then read that version. A definition that compiles to what is published already changes nothing.
Compiles the dataset's published definition again against the catalog as it is now, because a source it reads changed (-2): what compiles the same changes nothing; what compiles otherwise (a source's values now more protected, say) is published as the next version; what no longer compiles marks the dataset NEEDS_REVISION. The catalog sends it when a source changes, and nothing else does: internal.
Refuses the requested publication of a dataset, for reason.
Retires the dataset: its queries stop; its views stay in the warehouse for the retention (7 days by default), then the catalog drops them. Publishing it again before then brings it back.
Replaces the dataset's definition and title, checked against the catalog as a draft's is.
Switches the dataset's queries back to its published version, whose view is created again if it is gone.