Skip to content

Commit a2988fb

Browse files
Merge pull request #10 from everettttt/main
Remove time zone before datediff
2 parents 5c6cd0c + c9da182 commit a2988fb

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# dbt_pendo_source v0.2.1
2+
3+
## Under the Hood
4+
- The `valid_through` field within both the `stg_pendo__feature_history` and `stg_pendo__page_history` models have been updated to leverage the `dbt_utils.timestamp()` macro to be cast as timestamps. ([#10](https://github.com/fivetran/dbt_pendo_source/pull/10))
5+
6+
## Contributors
7+
- [everettt](https://github.com/everettttt?tab=overview) ([#10](https://github.com/fivetran/dbt_pendo_source/pull/10))
8+
19
# dbt_pendo_source v0.2.0
210
🎉 dbt v1.0.0 Compatibility 🎉
311
## 🚨 Breaking Changes 🚨

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
config-version: 2
22

33
name: 'pendo_source'
4-
version: '0.2.0'
4+
version: '0.2.1'
55

66
require-dbt-version: [">=1.0.0", "<2.0.0"]
77

integration_tests/dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
config-version: 2
22

33
name: 'pendo_source_integration_tests'
4-
version: '0.1.1'
4+
version: '0.2.1'
55

66
require-dbt-version: ">=0.20.0"
77
profile: 'integration_tests'

models/stg_pendo__feature_history.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ final as (
3535
page_id,
3636
root_version_id,
3737
stable_version_id,
38-
valid_through,
38+
cast(valid_through as {{ dbt_utils.type_timestamp() }}) as valid_through,
3939
_fivetran_synced
4040

4141
from fields

models/stg_pendo__page_history.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ final as (
3333
last_updated_by_user_id,
3434
root_version_id,
3535
stable_version_id,
36-
valid_through,
36+
cast(valid_through as {{ dbt_utils.type_timestamp() }}) as valid_through,
3737
_fivetran_synced
3838

3939
from fields

0 commit comments

Comments
 (0)