Skip to content

Commit

Permalink
fix: incorrectly named columns
Browse files Browse the repository at this point in the history
  • Loading branch information
njogz committed Nov 14, 2024
1 parent b5ca26b commit 69d758f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions models/users/telemetry.sql
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{{
config(
materialized = 'incremental',
unique_key='telemetry_id',
unique_key='uuid',
on_schema_change='append_new_columns',
indexes=[
{'columns': ['feedback_id'], 'type': 'hash'},
{'columns': ['uuid'], 'type': 'hash'},
{'columns': ['saved_timestamp']},
]
)
}}

SELECT
document_metadata.uuid as telemetry_id,
document_metadata.uuid as uuid,
document_metadata.saved_timestamp,
CONCAT_WS( --> Date concatenation from JSON fields, eg. 2021-5-17
'-',
Expand Down

0 comments on commit 69d758f

Please sign in to comment.