Skip to content

Commit

Permalink
fix cluster key
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-laurello committed Jul 26, 2024
1 parent 9063af0 commit 84abb4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions models/silver/silver__daily_earnings.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
materialized = 'incremental',
unique_key = 'day',
incremental_strategy = 'merge',
cluster_by = ['block_timestamp::DATE']
cluster_by = ['day']
) }}

WITH max_daily_block AS (
Expand All @@ -27,7 +27,7 @@ WHERE
)
FROM
{{ this }}
)
)
{% endif %}
GROUP BY
DAY
Expand All @@ -52,7 +52,7 @@ WHERE
)
FROM
{{ this }}
)
)
{% endif %}
GROUP BY
DAY,
Expand Down Expand Up @@ -105,5 +105,5 @@ WHERE
)
FROM
{{ this }}
)
)
{% endif %}

0 comments on commit 84abb4e

Please sign in to comment.