diff --git a/CHANGELOG.md b/CHANGELOG.md index ef1df532..159a723d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# dbt_stripe v0.10.2 +## 🎉 Feature Updates +- Included support for DuckDB via ([#67](https://github.com/fivetran/dbt_stripe/pull/67)) + +## Contributors +- [ericmichael](https://github.com/ericmichael) ([#67](https://github.com/fivetran/dbt_stripe/pull/67)) + # dbt_stripe v0.UPDATE.UPDATE ## Under the Hood: diff --git a/dbt_project.yml b/dbt_project.yml index ec996407..f0399e68 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'stripe' -version: '0.10.1' +version: '0.10.2' require-dbt-version: [">=1.3.0", "<2.0.0"] models: stripe: diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index f854e407..38450eb4 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,7 +1,7 @@ config-version: 2 name: 'stripe_integration_tests' -version: '0.10.1' +version: '0.10.2' profile: 'integration_tests' diff --git a/models/intermediate/int_stripe__date_spine.sql b/models/intermediate/int_stripe__date_spine.sql index 6f22108b..6c48caad 100644 --- a/models/intermediate/int_stripe__date_spine.sql +++ b/models/intermediate/int_stripe__date_spine.sql @@ -7,7 +7,7 @@ with spine as ( {% endset %} {% set first_date = run_query(first_date_query).columns[0][0]|string %} - {% if target.type == 'postgres' %} + {% if target.type == 'postgres' or target.type == 'duckdb' %} {% set first_date_adjust = "cast('" ~ first_date[0:10] ~ "' as date)" %} {% else %} @@ -34,7 +34,7 @@ with spine as ( {% else %} {% set last_date = run_query(current_date_query).columns[0][0]|string %} {% endif %} - {% if target.type == 'postgres' %} + {% if target.type == 'postgres' or target.type == 'duckdb' %} {% set last_date_adjust = "cast('" ~ last_date[0:10] ~ "' as date)" %} {% else %}