Skip to content

Commit

Permalink
Use engine-agnostic SQL templates in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Dec 7, 2023
1 parent 82f6c28 commit e44d4d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions metricflow/test/integration/test_cases/itest_metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1688,8 +1688,8 @@ integration_test:
FROM {{ source_schema }}.mf_time_spine subq_3
INNER JOIN
{{ source_schema }}.fct_bookings b
ON (DATE_TRUNC('day', b.ds) <= subq_3.ds)
AND (DATE_TRUNC('day', b.ds) > subq_3.ds - INTERVAL 2 day)
ON ({{ render_date_trunc("b.ds", TimeGranularity.DAY) }} <= subq_3.ds)
AND ({{ render_date_trunc("b.ds", TimeGranularity.DAY) }} > {{ render_date_sub("subq_3", "ds", 2, TimeGranularity.DAY) }})
) subq_4
ON subq_5.metric_time__day - INTERVAL 2 day = subq_4.metric_time__day
ON {{ render_date_sub("subq_5", "metric_time__day", 2, TimeGranularity.DAY) }} = subq_4.metric_time__day
GROUP BY subq_5.metric_time__day

0 comments on commit e44d4d7

Please sign in to comment.