Skip to content

Convert screen and view time from milliseconds to seconds - #55

Open
porkedchop wants to merge 1 commit into
fivetran:mainfrom
porkedchop:fix/millis-to-seconds
Open

porkedchop wants to merge 1 commit into
fivetran:mainfrom
porkedchop:fix/millis-to-seconds

Conversation

@porkedchop

Copy link
Copy Markdown

Resolves #54

Please provide your name and company

Bishop Kammeraad

Describe what this PR changes and how it addresses the linked issue or feature request.

Divides screen_time_millis, view_time_millis and attachment_total_view_time_millis by 1000 instead of 1000000 in the five report staging models, so screen_time, view_time and attachment_total_view_time are in seconds as documented. The micro-currency conversions (spend, conversion_purchases_value, daily_budget) are unchanged.

How did you validate the changes introduced within this PR, and what warehouse did you use for testing?

DuckDB with the integration test data. screen_time for the first campaign hourly row (163989 ms over 250 impressions) goes from 0.163989 to 163.989. dbt build passes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

screen_time and view_time are 1000x too small (milliseconds divided by 1,000,000)

1 participant