Skip to content

Commit

Permalink
update to date_day
Browse files Browse the repository at this point in the history
this pr updates the mf timespine daily examples to `date_day` from `date_hour`

confirmed [here](https://dbt-labs.slack.com/archives/C03KHQRQUBX/p1730824994215229)
  • Loading branch information
mirnawong1 authored Nov 5, 2024
1 parent 2d1a24a commit 4de2268
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/docs/docs/build/metricflow-time-spine.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ final as (
select * from final
where date_day > dateadd(year, -4, current_timestamp())
and date_hour < dateadd(day, 30, current_timestamp())
and date_day < dateadd(day, 30, current_timestamp())
```

### Daily (BigQuery)
Expand Down Expand Up @@ -180,7 +180,7 @@ select *
from final
-- filter the time spine to a specific range
where date_day > dateadd(year, -4, current_timestamp())
and date_hour < dateadd(day, 30, current_timestamp())
and date_day < dateadd(day, 30, current_timestamp())
```

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

</File>
Expand Down Expand Up @@ -296,7 +296,7 @@ select *
from final
-- filter the time spine to a specific range
where date_day > dateadd(year, -4, current_timestamp())
and date_hour < dateadd(day, 30, current_timestamp())
and date_day < dateadd(day, 30, current_timestamp())
```

</File>
Expand Down

0 comments on commit 4de2268

Please sign in to comment.