Skip to content

Commit

Permalink
Fix alias in contract_code_current
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneynotthecity committed Mar 18, 2024
1 parent 5e206ee commit d9758d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/marts/ledger_current_state/contract_code_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ with
, cc.ledger_key_hash
, row_number()
over (
partition by cd.contract_code_hash
order by cd.closed_at desc
partition by cc.contract_code_hash
order by cc.closed_at desc
) as rn
from {{ ref('stg_contract_code') }} as cc
{% if is_incremental() %}
Expand Down

0 comments on commit d9758d8

Please sign in to comment.