From 2bbd634d1a6f021ae95c2c74550c09ca09f7c17b Mon Sep 17 00:00:00 2001 From: Felix Henneke Date: Fri, 3 Jan 2025 14:25:30 +0100 Subject: [PATCH] [Hotfix] Materialize intermediate trade data view (#479) This hotfix PR only adds a `materialized` to an intermediate table. This fix should not be required if the database is configured correctly. --- queries/orderbook/order_data.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/orderbook/order_data.sql b/queries/orderbook/order_data.sql index 15a7dc83..a7e4f6ab 100644 --- a/queries/orderbook/order_data.sql +++ b/queries/orderbook/order_data.sql @@ -133,7 +133,7 @@ price_data as ( on tdp.auction_id = ap_protocol.auction_id and tdp.surplus_token = ap_protocol.token ), -trade_data_processed_with_prices as ( +trade_data_processed_with_prices as materialized ( select --noqa: ST06 tdp.auction_id, tdp.solver,