From a8892e7d5d0e37ad1e541af68f5299689d29eb54 Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Mon, 17 Jun 2024 11:27:44 +0200 Subject: [PATCH] this max should have been an int --- models/intermediate/cross/int_daily_currency_exchange_rates.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/intermediate/cross/int_daily_currency_exchange_rates.sql b/models/intermediate/cross/int_daily_currency_exchange_rates.sql index bb5eb88..8551c7f 100644 --- a/models/intermediate/cross/int_daily_currency_exchange_rates.sql +++ b/models/intermediate/cross/int_daily_currency_exchange_rates.sql @@ -64,7 +64,7 @@ with ), -- CTEs for projecting backward oldest_xe_date_per_curr_pair as ( - select from_currency, to_currency, max(rate_date_utc) as oldest_date_utc + select from_currency, to_currency, min(rate_date_utc) as oldest_date_utc from stg_xedotcom__exchange_rates group by 1, 2 ),