Skip to content

Commit

Permalink
Update metricflow-time-spine.md
Browse files Browse the repository at this point in the history
fold in natalie's feedback
  • Loading branch information
mirnawong1 authored Sep 2, 2024
1 parent 2957869 commit fb636f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/docs/docs/build/metricflow-time-spine.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ The example creates a time spine at a daily grain and an hourly grain. A few thi
* You can add a time spine for each granularity you intend to use if query efficiency is more important to you than configuration time, or storage constraints. For most engines, the query performance difference should be minimal and transforming your time spine to a coarser grain at query time shouldn't add significant overhead to your queries.
* We recommend having a time spine at the finest grain used in any of your dimensions to avoid unexpected errors. i.e., if you have dimensions at an hourly grain, you should have a time spine at an hourly grain.

<File name='time_spine_daily.sql'>

<VersionBlock lastVersion="1.6">

<File name='time_spine_daily.sql'>

```sql
{{
config(
Expand Down Expand Up @@ -80,6 +80,7 @@ select * from final
where date_day > dateadd(year, -4, current_timestamp())
and date_hour < dateadd(day, 30, current_timestamp())
```
</File

</VersionBlock>

Expand Down

0 comments on commit fb636f1

Please sign in to comment.