Skip to content

Commit

Permalink
mark_distinct_strategy macro (duneanalytics#4671)
Browse files Browse the repository at this point in the history
  • Loading branch information
couralex6 authored Oct 25, 2023
1 parent 5775d83 commit 664b829
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions macros/mark_distinct_strategy.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% macro mark_distinct_strategy(value) %}
{{ set_trino_session_property(true, 'mark_distinct_strategy', value) }}
{% endmacro %}
1 change: 1 addition & 0 deletions models/maker/ethereum/maker_ethereum_accounting.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
partition_by = ['dt'],
materialized = 'table',
file_format = 'delta',
pre_hook='{{ mark_distinct_strategy(None) }}',
post_hook='{{ expose_spells(\'["ethereum"]\',
"project",
"maker",
Expand Down

0 comments on commit 664b829

Please sign in to comment.