Skip to content

Commit

Permalink
Merge pull request #7 from fivetran/bug/spend-in-micros
Browse files Browse the repository at this point in the history
Bug/spend in micros
  • Loading branch information
fivetran-joemarkiewicz authored Sep 8, 2021
2 parents 188313c + 4808ad7 commit 156db86
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -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"

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'snapchat_ads_source_integration_tests'
version: '0.2.0'
version: '0.2.1'
profile: 'integration_tests'
config-version: 2

Expand Down
2 changes: 1 addition & 1 deletion models/stg_snapchat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion models/stg_snapchat__ad_hourly_report.sql
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final as (
ad_id,
date as date_hour,
impressions,
spend,
(spend / 1000000.0) as spend,
swipes
from fields
)
Expand Down

0 comments on commit 156db86

Please sign in to comment.