Skip to content

Commit

Permalink
Lint again
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneynotthecity committed Mar 18, 2024
1 parent 241da4e commit 5e206ee
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 39 deletions.
8 changes: 4 additions & 4 deletions models/marts/ledger_current_state/account_signers_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ with
, s.batch_run_date
, s.batch_insert_ts
, row_number()
over (
partition by s.account_id, s.signer
order by s.last_modified_ledger desc, s.ledger_entry_change desc
) as row_nr
over (
partition by s.account_id, s.signer
order by s.last_modified_ledger desc, s.ledger_entry_change desc
) as row_nr
from {{ ref('stg_account_signers') }} as s
join {{ ref('stg_history_ledgers') }} as l
on s.last_modified_ledger = l.sequence
Expand Down
14 changes: 7 additions & 7 deletions models/marts/ledger_current_state/accounts_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ with
, a.batch_run_date
, a.batch_insert_ts
, row_number()
over (
partition by a.account_id
order by
a.last_modified_ledger desc
, a.ledger_entry_change desc
)
as row_nr
over (
partition by a.account_id
order by
a.last_modified_ledger desc
, a.ledger_entry_change desc
)
as row_nr
from {{ ref('stg_accounts') }} as a
join {{ ref('stg_history_ledgers') }} as l
on a.last_modified_ledger = l.sequence
Expand Down
8 changes: 4 additions & 4 deletions models/marts/ledger_current_state/config_settings_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ with
, cfg.batch_insert_ts
, cfg.ledger_sequence
, row_number()
over (
partition by cfg.config_setting_id
order by cfg.closed_at desc
) as rn
over (
partition by cfg.config_setting_id
order by cfg.closed_at desc
) as rn
from {{ ref('stg_config_settings') }} as cfg
{% if is_incremental() %}
-- limit the number of partitions fetched incrementally
Expand Down
8 changes: 4 additions & 4 deletions models/marts/ledger_current_state/contract_code_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ with
, cc.ledger_sequence
, cc.ledger_key_hash
, row_number()
over (
partition by cd.contract_code_hash
order by cd.closed_at desc
) as rn
over (
partition by cd.contract_code_hash
order by cd.closed_at desc
) as rn
from {{ ref('stg_contract_code') }} as cc
{% if is_incremental() %}
-- limit the number of partitions fetched incrementally
Expand Down
8 changes: 4 additions & 4 deletions models/marts/ledger_current_state/contract_data_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ with
, cd.ledger_key_hash
, concat(cd.contract_id, '-', cd.ledger_key_hash) as unique_id
, row_number()
over (
partition by cd.contract_id, cd.ledger_key_hash
order by cd.closed_at desc
) as rn
over (
partition by cd.contract_id, cd.ledger_key_hash
order by cd.closed_at desc
) as rn
from {{ ref('stg_contract_data') }} as cd
{% if is_incremental() %}
-- limit the number of partitions fetched incrementally
Expand Down
8 changes: 4 additions & 4 deletions models/marts/ledger_current_state/liquidity_pools_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ with
, lp.batch_run_date
, lp.batch_insert_ts
, row_number()
over (
partition by lp.liquidity_pool_id
order by lp.last_modified_ledger desc, lp.ledger_entry_change desc
) as row_nr
over (
partition by lp.liquidity_pool_id
order by lp.last_modified_ledger desc, lp.ledger_entry_change desc
) as row_nr
from {{ ref('stg_liquidity_pools') }} as lp
join {{ ref('stg_history_ledgers') }} as l
on lp.last_modified_ledger = l.sequence
Expand Down
8 changes: 4 additions & 4 deletions models/marts/ledger_current_state/offers_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ with
, o.batch_run_date
, o.batch_insert_ts
, row_number()
over (
partition by o.offer_id
order by o.last_modified_ledger desc, o.ledger_entry_change desc
) as row_nr
over (
partition by o.offer_id
order by o.last_modified_ledger desc, o.ledger_entry_change desc
) as row_nr
from {{ ref('stg_offers') }} as o
join {{ ref('stg_history_ledgers') }} as l
on o.last_modified_ledger = l.sequence
Expand Down
8 changes: 4 additions & 4 deletions models/marts/ledger_current_state/trust_lines_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ with
, tl.batch_run_date
, tl.batch_insert_ts
, row_number()
over (
partition by tl.account_id, tl.asset_code, tl.asset_issuer, tl.liquidity_pool_id
order by tl.last_modified_ledger desc, tl.ledger_entry_change desc
) as row_nr
over (
partition by tl.account_id, tl.asset_code, tl.asset_issuer, tl.liquidity_pool_id
order by tl.last_modified_ledger desc, tl.ledger_entry_change desc
) as row_nr
from {{ ref('stg_trust_lines') }} as tl
join {{ ref('stg_history_ledgers') }} as l
on tl.last_modified_ledger = l.sequence
Expand Down
8 changes: 4 additions & 4 deletions models/marts/ledger_current_state/ttl_current.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ with
, ttl.batch_run_date
, ttl.batch_insert_ts
, row_number()
over (
partition by ttl.key_hash
order by ttl.closed_at
) as rn
over (
partition by ttl.key_hash
order by ttl.closed_at
) as rn
from {{ ref('stg_ttl') }} as ttl
{% if is_incremental() %}
-- limit the number of partitions fetched incrementally
Expand Down

0 comments on commit 5e206ee

Please sign in to comment.