From 2b57b170352519d229e6a47bb13bcfed5f7dc684 Mon Sep 17 00:00:00 2001 From: Alex Kan <29241719+akan72@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:20:52 -0400 Subject: [PATCH] cast as date --- models/staging/drift/fact_drift_prediction_markets.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/staging/drift/fact_drift_prediction_markets.sql b/models/staging/drift/fact_drift_prediction_markets.sql index 7979460e..b83f7991 100644 --- a/models/staging/drift/fact_drift_prediction_markets.sql +++ b/models/staging/drift/fact_drift_prediction_markets.sql @@ -2,12 +2,12 @@ with trump_data as ( select - DATE_TRUNC('DAY', extraction_date) as date, + DATE_TRUNC('DAY', extraction_date)::date as date, source_json as trump_price from {{ source("PROD_LANDING", "raw_drift_fill_price_trump") }} ), kamala_data as ( select - DATE_TRUNC('DAY', extraction_date) as date, + DATE_TRUNC('DAY', extraction_date)::date as date, source_json as kamala_price from {{ source("PROD_LANDING", "raw_drift_fill_price_kamala") }} )