Skip to content

Commit cbaca14

Browse files
committed
test pftc
1 parent 1e8abf5 commit cbaca14

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{% set blockchain = 'arbitrum' %}
2+
3+
4+
5+
{{
6+
config(
7+
schema = 'oneinch_' + blockchain,
8+
alias = 'ptfc',
9+
partition_by = ['block_month'],
10+
materialized = 'incremental',
11+
file_format = 'delta',
12+
incremental_strategy = 'merge',
13+
incremental_predicates = [incremental_predicate('DBT_INTERNAL_DEST.block_time')],
14+
unique_key = ['blockchain', 'block_number', 'tx_hash', 'transfer_trace_address']
15+
)
16+
}}
17+
18+
-- depends_on: {{ ref('oneinch_' + blockchain + '_mapped_contracts') }}
19+
20+
select *, date(date_trunc('month', block_time)) as block_month from (
21+
{{
22+
oneinch_project_ptfc_macro(
23+
blockchain = blockchain
24+
)
25+
}}
26+
)

0 commit comments

Comments
 (0)