From ca78018be502b1e4092c8665c8d666253e5bf4dd Mon Sep 17 00:00:00 2001 From: drethereum <71602799+drethereum@users.noreply.github.com> Date: Wed, 26 Feb 2025 09:25:38 -0700 Subject: [PATCH] fix/decoded-traces-join (#1027) call_id --- macros/decoder/decoded_traces_history.sql | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/macros/decoder/decoded_traces_history.sql b/macros/decoder/decoded_traces_history.sql index 70b3be52..8a99d946 100644 --- a/macros/decoder/decoded_traces_history.sql +++ b/macros/decoder/decoded_traces_history.sql @@ -33,8 +33,11 @@ '-', t.block_number, t.tx_position, - t.type, - t.trace_address + CONCAT( + t.type, + '_', + t.trace_address + ) ) AS _call_id FROM {{ ref('core__fact_traces') }} @@ -148,8 +151,11 @@ '-', t.block_number, t.tx_position, - t.type, - t.trace_address + CONCAT( + t.type, + '_', + t.trace_address + ) ) AS _call_id FROM target_blocks