DataJunction / dj

A metrics platform.

Home Page:http://datajunction.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dimension Roles

shangyian opened this issue · comments

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
commented

Added the basic setup for dimension roles on a dimension link in #885