-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test cases for trailing_2_months_revenue
- Loading branch information
1 parent
645227e
commit 0e4820a
Showing
19 changed files
with
82 additions
and
86 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
6 changes: 3 additions & 3 deletions
6
...ive_metric_rendering.py/SqlQueryPlan/BigQuery/test_cumulative_metric__plan0_optimized.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
-- Read Elements From Semantic Model 'revenue' | ||
-- Metric Time Dimension 'ds' | ||
-- Pass Only Elements: ['txn_revenue', 'ds__month'] | ||
-- Pass Only Elements: ['txn_revenue', 'ds__day'] | ||
-- Aggregate Measures | ||
-- Compute Metrics via Expressions | ||
SELECT | ||
DATE_TRUNC(created_at, month) AS ds__month | ||
DATE_TRUNC(created_at, day) AS ds__day | ||
, SUM(revenue) AS trailing_2_months_revenue | ||
FROM ***************************.fct_revenue revenue_src_10007 | ||
GROUP BY | ||
ds__month | ||
ds__day |
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
6 changes: 3 additions & 3 deletions
6
...ative_metric_rendering.py/SqlQueryPlan/DuckDB/test_cumulative_metric__plan0_optimized.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
-- Read Elements From Semantic Model 'revenue' | ||
-- Metric Time Dimension 'ds' | ||
-- Pass Only Elements: ['txn_revenue', 'ds__month'] | ||
-- Pass Only Elements: ['txn_revenue', 'ds__day'] | ||
-- Aggregate Measures | ||
-- Compute Metrics via Expressions | ||
SELECT | ||
DATE_TRUNC('month', created_at) AS ds__month | ||
DATE_TRUNC('day', created_at) AS ds__day | ||
, SUM(revenue) AS trailing_2_months_revenue | ||
FROM ***************************.fct_revenue revenue_src_10007 | ||
GROUP BY | ||
DATE_TRUNC('month', created_at) | ||
DATE_TRUNC('day', created_at) |
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
6 changes: 3 additions & 3 deletions
6
...ive_metric_rendering.py/SqlQueryPlan/Redshift/test_cumulative_metric__plan0_optimized.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
-- Read Elements From Semantic Model 'revenue' | ||
-- Metric Time Dimension 'ds' | ||
-- Pass Only Elements: ['txn_revenue', 'ds__month'] | ||
-- Pass Only Elements: ['txn_revenue', 'ds__day'] | ||
-- Aggregate Measures | ||
-- Compute Metrics via Expressions | ||
SELECT | ||
DATE_TRUNC('month', created_at) AS ds__month | ||
DATE_TRUNC('day', created_at) AS ds__day | ||
, SUM(revenue) AS trailing_2_months_revenue | ||
FROM ***************************.fct_revenue revenue_src_10007 | ||
GROUP BY | ||
DATE_TRUNC('month', created_at) | ||
DATE_TRUNC('day', created_at) |
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.