fivetran / dbt_pendo_source

Fivetran staging data transformations for Pendo built using dbt.
https://fivetran.github.io/dbt_pendo_source/
Apache License 2.0
3 stars 5 forks source link

Remove time zone before datediff #10

Closed SteadyGiant closed 2 years ago

SteadyGiant commented 2 years ago

What change(s) does this PR introduce?

The Fivetran Pendo connector stores valid_through/validThrough as type TIMESTAMP WITH TIMEZONE in Redshift. Convert it to TIMESTAMP WITH NO TIMEZONE before calculating a date difference.

Does this PR introduce a breaking change?

Not sure.

Is this PR in response to a previously created Issue

How did you test the PR changes?

- [ ] CircleCi - [x] Other (please provide additional testing details below) I ran it against my DWH. **Select which warehouse(s) were used to test the PR** - [ ] BigQuery - [x] Redshift - [ ] Snowflake - [ ] Postgres - [ ] Databricks - [ ] Other (provide details below)