From e2ccc86a0d001a678a99570c38ef94f58d735c04 Mon Sep 17 00:00:00 2001 From: Troy Date: Tue, 23 Jan 2024 12:59:33 -0700 Subject: [PATCH] add joins to transform --- .../models/marts/perp_stats/fct_perp_account_stats_hourly.sql | 1 + .../models/marts/perp_stats/fct_perp_market_stats_daily.sql | 1 + 2 files changed, 2 insertions(+) diff --git a/transformers/synthetix/models/marts/perp_stats/fct_perp_account_stats_hourly.sql b/transformers/synthetix/models/marts/perp_stats/fct_perp_account_stats_hourly.sql index fe5ef35f..0a5535b5 100644 --- a/transformers/synthetix/models/marts/perp_stats/fct_perp_account_stats_hourly.sql +++ b/transformers/synthetix/models/marts/perp_stats/fct_perp_account_stats_hourly.sql @@ -100,6 +100,7 @@ inc AS ( inc_trades h LEFT JOIN inc_liq l ON h.ts = l.ts + AND h.account_id = l.account_id ) SELECT * diff --git a/transformers/synthetix/models/marts/perp_stats/fct_perp_market_stats_daily.sql b/transformers/synthetix/models/marts/perp_stats/fct_perp_market_stats_daily.sql index b6f60de4..0247ff59 100644 --- a/transformers/synthetix/models/marts/perp_stats/fct_perp_market_stats_daily.sql +++ b/transformers/synthetix/models/marts/perp_stats/fct_perp_market_stats_daily.sql @@ -88,6 +88,7 @@ inc AS ( inc_trades h LEFT JOIN inc_liq l ON h.ts = l.ts + AND h.market_symbol = l.market_symbol ) SELECT *