diff --git a/dbt_project.yml b/dbt_project.yml index 973b66a..34b0d02 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ name: 'snapchat_ads_source' -version: '0.2.0' +version: '0.2.1' config-version: 2 require-dbt-version: ">=0.20.0" diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 145a005..473f4d2 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'snapchat_ads_source_integration_tests' -version: '0.2.0' +version: '0.2.1' profile: 'integration_tests' config-version: 2 diff --git a/models/stg_snapchat.yml b/models/stg_snapchat.yml index f25435f..6030bea 100644 --- a/models/stg_snapchat.yml +++ b/models/stg_snapchat.yml @@ -54,7 +54,7 @@ models: - name: impressions description: The number of impressions for an ad in the hour of the record. - name: spend - description: The amount of spend for an ad in the hour of the record. + description: The amount of spend for an ad in the hour of the record converted from micros. - name: swipes description: The number of swipes for an ad in the hour of the record. diff --git a/models/stg_snapchat__ad_hourly_report.sql b/models/stg_snapchat__ad_hourly_report.sql index 581d1ad..a85c68a 100644 --- a/models/stg_snapchat__ad_hourly_report.sql +++ b/models/stg_snapchat__ad_hourly_report.sql @@ -25,7 +25,7 @@ final as ( ad_id, date as date_hour, impressions, - spend, + (spend / 1000000.0) as spend, swipes from fields )