-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SQL exprs needed for custom offset window (#1575)
This includes a `CASE` expression, an integer expression, an arithmetic expression, and some updates to the add time expression & window function expressions. These are all needed to build the following SQL column: ``` CASE WHEN ds__martian_day__first_value__offset + INTERVAL (ds__day__row_number - 1) day <= ds__martian_day__last_value__offset THEN ds__martian_day__first_value__offset + INTERVAL (ds__day__row_number - 1) day ELSE ds__martian_day__last_value__offset END AS metric_time__day ``` Note that the first commit is moving the `sql_exprs` file into `metricflow-semantics`, which is needed for a commit further up the stack.
- Loading branch information
1 parent
72f692f
commit 48e85f5
Showing
39 changed files
with
559 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.