Skip to content

Commit

Permalink
chore: refactor to address sonarlint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
njogz committed Nov 14, 2024
1 parent 82231b1 commit dc1cfd5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
9 changes: 5 additions & 4 deletions models/users/feedback.sql
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{% set COLUMNS = 'columns' %}
{{
config(
materialized = 'incremental',
unique_key='uuid',
on_schema_change='append_new_columns',
indexes=[
{'columns': ['uuid'], 'type': 'hash'},
{'columns': ['saved_timestamp']},
{'columns': ['period_start']},
{'columns': ['user_name']},
{COLUMNS: ['uuid'], 'type': 'hash'},
{COLUMNS: ['saved_timestamp']},
{COLUMNS: ['period_start']},
{COLUMNS: ['user_name']},
]
)
}}
Expand Down
11 changes: 6 additions & 5 deletions models/users/telemetry.sql
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{% set COLUMNS = 'columns' %}
{{
config(
materialized = 'incremental',
unique_key='uuid',
on_schema_change='append_new_columns',
indexes=[
{'columns': ['uuid'], 'type': 'hash'},
{'columns': ['saved_timestamp']},
{'columns': ['period_start']},
{'columns': ['user_name']},
{'columns': ['app_version']},
{COLUMNS: ['uuid'], 'type': 'hash'},
{COLUMNS: ['saved_timestamp']},
{COLUMNS: ['period_start']},
{COLUMNS: ['user_name']},
{COLUMNS: ['app_version']},
]
)
}}
Expand Down
9 changes: 5 additions & 4 deletions models/users/telemetry_devices.sql
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{% set COLUMNS = 'columns' %}
{{
config(
materialized = 'incremental',
unique_key='uuid',
on_schema_change='append_new_columns',
indexes=[
{'columns': ['uuid'], 'type': 'hash'},
{'columns': ['saved_timestamp']},
{'columns': ['period_start']},
{'columns': ['android_version']},
{COLUMNS: ['uuid'], 'type': 'hash'},
{COLUMNS: ['saved_timestamp']},
{COLUMNS: ['period_start']},
{COLUMNS: ['android_version']},
]
)
}}
Expand Down

0 comments on commit dc1cfd5

Please sign in to comment.