From b7f00da214e82c5265226d48338cda61427a4a31 Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Wed, 21 Jul 2021 09:32:06 -0500 Subject: [PATCH] postgres compatibility updates --- .circleci/config.yml | 10 ++++++++++ README.md | 8 +++++++- dbt_project.yml | 2 +- integration_tests/ci/sample.profiles.yml | 13 ++++++++++++- integration_tests/dbt_project.yml | 2 +- 5 files changed, 31 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dc276e2..401628d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,16 @@ jobs: pip install -r integration_tests/requirements.txt mkdir -p ~/.dbt cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml + - run: + name: "Run Tests - Postgres" + command: | + . venv/bin/activate + echo `pwd` + cd integration_tests + dbt deps + dbt seed --target postgres --full-refresh + dbt run --target postgres --full-refresh + dbt test --target postgres - run: name: "Run Tests - Spark" command: | diff --git a/README.md b/README.md index fb21659..60e32a0 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,10 @@ models: +schema: my_new_schema_name # leave blank for just the target_schema ``` +## Database Support + +This package has been tested on BigQuery, Snowflake, Redshift, Postgres, and Databricks. + ## Contributions Additional contributions to this package are very welcome! Please create issues @@ -115,8 +119,10 @@ on the best workflow for contributing to a package. ## Resources: - Provide [feedback](https://www.surveymonkey.com/r/DQ7K7WW) on our existing dbt packages or what you'd like to see next +- Have questions, feedback, or need help? Book a time during our office hours [using Calendly](https://calendly.com/fivetran-solutions-team/fivetran-solutions-team-office-hours) or email us at solutions@fivetran.com - Find all of Fivetran's pre-built dbt packages in our [dbt hub](https://hub.getdbt.com/fivetran/) -- Learn more about Fivetran [in the Fivetran docs](https://fivetran.com/docs) +- Learn how to orchestrate [dbt transformations with Fivetran](https://fivetran.com/docs/transformations/dbt) +- Learn more about Fivetran overall [in our docs](https://fivetran.com/docs) - Check out [Fivetran's blog](https://fivetran.com/blog) - Learn more about dbt [in the dbt docs](https://docs.getdbt.com/docs/introduction) - Check out [Discourse](https://discourse.getdbt.com/) for commonly asked questions and answers diff --git a/dbt_project.yml b/dbt_project.yml index 85d9804..ef5c9d5 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,6 +1,6 @@ name: 'google_ads_source' -version: '0.2.0' +version: '0.2.4' config-version: 2 require-dbt-version: [">=0.18.0", "<0.20.0"] diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index ede6b38..e992ab7 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -46,4 +46,15 @@ integration_tests: port: 443 connect_timeout: 60 connect_retries: 5 - threads: 4 \ No newline at end of file + threads: 4 + postgres: + type: postgres + host: "{{ env_var('CI_POSTGRES_DBT_HOST') }}" + user: "{{ env_var('CI_POSTGRES_DBT_USER') }}" + password: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" + port: 5432 + dbname: "{{ env_var('CI_POSTGRES_DBT_DATABASE') }}" + schema: google_ads_source_integration_tests + threads: 8 + keepalives_idle: 0 + sslmode: prefer \ No newline at end of file diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index c3cb3b6..20416d6 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'google_ads_source_integration_tests' -version: '0.2.0' +version: '0.2.4' profile: 'integration_tests' config-version: 2