mirror of
https://github.com/FlipsideCrypto/avalanche-models.git
synced 2026-02-06 15:16:48 +00:00
dexalot-tasks (#331)
* temp changes * wfs * remove non realtime job * package
This commit is contained in:
parent
5e4492c211
commit
104efeda93
@ -1,12 +1,10 @@
|
||||
name: dbt_run_streamline_dexalot_non_realtime
|
||||
run-name: dbt_run_streamline_dexalot_non_realtime
|
||||
name: dbt_run_scheduled_dexalot_main
|
||||
run-name: dbt_run_scheduled_dexalot_main
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- "main"
|
||||
schedule:
|
||||
- cron: '5 * * * *'
|
||||
|
||||
env:
|
||||
DBT_PROFILES_DIR: ./
|
||||
@ -29,5 +27,5 @@ jobs:
|
||||
with:
|
||||
command_name: Run Chainhead Models
|
||||
command: |
|
||||
dbt run -m "avalanche_models,tag:dexalot_non_realtime"
|
||||
dbt run -m "avalanche_models,tag:dexalot_main"
|
||||
secrets: inherit
|
||||
@ -5,8 +5,6 @@ on:
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- "main"
|
||||
schedule:
|
||||
- cron: '50 * * * *'
|
||||
|
||||
env:
|
||||
DBT_PROFILES_DIR: ./
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
merge_exclude_columns = ["inserted_timestamp"],
|
||||
cluster_by = "block_timestamp::date",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(hash,parent_hash,receipts_root,sha3_uncles)",
|
||||
tags = ['dexalot_non_realtime']
|
||||
tags = ['dexalot_main']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
unique_key = "fact_event_logs_id",
|
||||
cluster_by = "block_timestamp::date",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
|
||||
tags = ['dexalot_non_realtime']
|
||||
tags = ['dexalot_main']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
cluster_by = "block_timestamp::date",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,trace_address,type), SUBSTRING(input,output,type,trace_address,error_reason,revert_reason)",
|
||||
full_refresh = false,
|
||||
tags = ['dexalot_non_realtime']
|
||||
tags = ['dexalot_main']
|
||||
) }}
|
||||
|
||||
WITH silver_traces AS (
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
incremental_strategy = 'delete+insert',
|
||||
cluster_by = "block_timestamp::date",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
|
||||
tags = ['dexalot_non_realtime']
|
||||
tags = ['dexalot_main']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
unique_key = "block_number",
|
||||
cluster_by = "block_timestamp::date",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(hash,parent_hash,receipts_root,sha3_uncles,state_root,transactions_root)",
|
||||
tags = ['dexalot_non_realtime','streamline_dexalot_realtime']
|
||||
tags = ['dexalot_main','streamline_dexalot_realtime']
|
||||
) }}
|
||||
|
||||
SELECT
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
unique_key = "block_number",
|
||||
cluster_by = "block_timestamp::date, _inserted_timestamp::date",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
|
||||
tags = ['dexalot_non_realtime']
|
||||
tags = ['dexalot_main']
|
||||
) }}
|
||||
|
||||
WITH base AS (
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
unique_key = "block_number",
|
||||
cluster_by = "ROUND(block_number, -3)",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_hash, tx_hash, from_address, to_address)",
|
||||
tags = ['dexalot_non_realtime']
|
||||
tags = ['dexalot_main']
|
||||
) }}
|
||||
|
||||
WITH base AS (
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
unique_key = "block_number",
|
||||
cluster_by = ['modified_timestamp::DATE','partition_key'],
|
||||
full_refresh = false,
|
||||
tags = ['dexalot_non_realtime']
|
||||
tags = ['dexalot_main']
|
||||
) }}
|
||||
|
||||
WITH bronze_traces AS (
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
unique_key = "block_number",
|
||||
cluster_by = "block_timestamp::date, _inserted_timestamp::date",
|
||||
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
|
||||
tags = ['dexalot_non_realtime']
|
||||
tags = ['dexalot_main']
|
||||
) }}
|
||||
|
||||
WITH base AS (
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
packages:
|
||||
- git: https://github.com/FlipsideCrypto/fsc-evm.git
|
||||
revision: v4.0.0-beta.65
|
||||
revision: v4.0.0-beta.66
|
||||
|
||||
Loading…
Reference in New Issue
Block a user