diff --git a/models/staging/celo/fact_celo_traces.sql b/models/staging/celo/fact_celo_traces.sql index 059ee080..02f457bb 100644 --- a/models/staging/celo/fact_celo_traces.sql +++ b/models/staging/celo/fact_celo_traces.sql @@ -50,5 +50,5 @@ select , status , trace_id , id -from raw_receipt_transactions +from raw_traces qualify row_number() over (partition by id order by block_timestamp desc) = 1 \ No newline at end of file