account_count, segment, and active_accounts to
physical tables, expressions, and filters. Queries can use those names instead
of constructing the definitions again for each question.
This is useful when several people, agents, or Plays need the same meaning for
a metric. A pipeline report and a qualification analysis can use the same
reviewed definition of an active account, even when they group the result differently.
The model and the data
A semantic model describes data. The warehouse holds the actual records. Deepline stores the model’s YAML for the workspace and connector. A semantic query reads that saved model, compiles the selected definitions to SQL, and executes the query through the warehouse connection.
For example, a model can define
account_count as COUNT(*) and
active_accounts as IS_ACTIVE = TRUE. A query selecting the count, the segment
dimension, and that filter produces active-account counts by segment.
The physical names in this example are illustrative, not built-in Deepline tables.
Named filters apply when selected. A table’s base filter applies automatically.
Declared relationships allow the renderer to plan joins for referenced tables.
The model’s identities and relationship rules therefore affect the population
being measured, not just the names shown in a result.