Skip to content

Commit

Permalink
test #1
Browse files Browse the repository at this point in the history
  • Loading branch information
laysabit committed Mar 4, 2024
1 parent 10dd3df commit 987f87f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 30 deletions.
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
31 changes: 8 additions & 23 deletions profiles.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,13 @@
stellar_dbt_public:
target: "{{ env_var('DBT_TARGET') }}"
outputs:
prod:
dataset: "{{ env_var('DBT_DATASET') }}"
maximum_bytes_billed: "{{ env_var('DBT_MAX_BYTES_BILLED') | as_number }}"
job_execution_timeout_seconds: "{{ env_var('DBT_JOB_TIMEOUT') | int }}"
threads: "{{ env_var('DBT_THREADS') | int }}"
job_retries: "{{ env_var('DBT_JOB_RETRIES') | int }}"
priority: interactive
project: crypto-stellar
location: us
dev:
dataset: crypto_stellar
job_execution_timeout_seconds: 300
job_retries: 1
location: US
method: oauth
type: bigquery
test:
<<: *default
jenkins:
dataset: "{{ env_var('PUBLIC_SOURCE_SCHEMA') }}"
maximum_bytes_billed: "{{ env_var('DBT_MAX_BYTES_BILLED') | as_number }}"
job_execution_timeout_seconds: "{{ env_var('DBT_JOB_TIMEOUT') | int }}"
threads: "{{ env_var('DBT_THREADS') | int }}"
job_retries: "{{ env_var('DBT_JOB_RETRIES') | int }}"
priority: interactive
location: us
project: crypto-stellar
threads: 1
type: bigquery
project: test-hubble-319619
keyfile: /stellar-dbt/service_account.json
method: service-account
target: dev

0 comments on commit 987f87f

Please sign in to comment.