Dimension Roles
shangyian opened this issue · comments
Yian commented
We should support the idea of a dimension role. Any given dimension may play different roles, depending on the context. For example, the common.dimensions.date
dimension might be a RegistrationDate
or a SnapshotDate
or a ClickDate
, depending on where the dimension is used.
To support this:
- Add
roles: list[str]
to a dimension node - For column <> dimension links, add an optional field
role
for specifying the role of a linked dimension - New syntax for requesting dimensions with specific roles. This will need to be SQL parseable because the filters provided to the
/sql
endpoint is arbitrary SQL