From 319ac77c9debc4aa36dff96c793d4253197e5153 Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Thu, 16 May 2024 18:30:15 -0700 Subject: [PATCH] Fix check query syntax for BigQuery --- tests_metricflow/integration/test_cases/itest_metrics.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests_metricflow/integration/test_cases/itest_metrics.yaml b/tests_metricflow/integration/test_cases/itest_metrics.yaml index 83ab8bd4cb..84b45fbec0 100644 --- a/tests_metricflow/integration/test_cases/itest_metrics.yaml +++ b/tests_metricflow/integration/test_cases/itest_metrics.yaml @@ -2124,7 +2124,7 @@ integration_test: , SUM(a.txn_count) AS txn_count FROM {{ source_schema }}.account_month_txns a LEFT OUTER JOIN {{ source_schema }}.bridge_table b - ON (a.account_id = b.account_id) AND (DATE_TRUNC('day', a.ds_partitioned) = DATE_TRUNC('day', b.ds_partitioned)) + ON (a.account_id = b.account_id) AND ({{ render_date_trunc("a.ds_partitioned", TimeGranularity.DAY) }} = {{ render_date_trunc("b.ds_partitioned", TimeGranularity.DAY) }}) LEFT OUTER JOIN {{ source_schema }}.customer_other_data c ON b.customer_id = c.customer_id GROUP BY c.customer_third_hop_id