From 987f87fd7fa00a36c1cd591004c874eb77650ce2 Mon Sep 17 00:00:00 2001 From: laysabit Date: Mon, 4 Mar 2024 16:19:43 -0300 Subject: [PATCH] test #1 --- .../ledger_current_state/accounts_current.sql | 14 ++++----- profiles.yml | 31 +++++-------------- 2 files changed, 15 insertions(+), 30 deletions(-) diff --git a/models/marts/ledger_current_state/accounts_current.sql b/models/marts/ledger_current_state/accounts_current.sql index cd8409a..35fea3f 100644 --- a/models/marts/ledger_current_state/accounts_current.sql +++ b/models/marts/ledger_current_state/accounts_current.sql @@ -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 diff --git a/profiles.yml b/profiles.yml index 14ce9a6..8bb3c02 100644 --- a/profiles.yml +++ b/profiles.yml @@ -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 \ No newline at end of file + target: dev