From 7795cd7ee60727bfaf5476207799bb80cfd194e8 Mon Sep 17 00:00:00 2001 From: Aeriel Soriano <27873562+aerielsoriano@users.noreply.github.com> Date: Tue, 26 Nov 2024 01:09:42 +0000 Subject: [PATCH] Update metricflow-time-spine.md Updated the WHERE clause for the BigQuery Daily code block. It throws an error when using the original suggestion. --- website/docs/docs/build/metricflow-time-spine.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/docs/build/metricflow-time-spine.md b/website/docs/docs/build/metricflow-time-spine.md index 5f16af38023..48e46caeec2 100644 --- a/website/docs/docs/build/metricflow-time-spine.md +++ b/website/docs/docs/build/metricflow-time-spine.md @@ -179,8 +179,8 @@ final as ( select * from final -- filter the time spine to a specific range -where date_day > dateadd(year, -4, current_timestamp()) -and date_day < dateadd(day, 30, current_timestamp()) +where date_day > date_add(DATE(current_timestamp()), INTERVAL -4 YEAR) +and date_day < date_add(DATE(current_timestamp()), INTERVAL 30 DAY) ```