Skip to content

Commit

Permalink
Merge pull request #12 from fivetran/feature/postgres
Browse files Browse the repository at this point in the history
postgres compatibility updates
  • Loading branch information
fivetran-joemarkiewicz authored Jul 21, 2021
2 parents 0051641 + b7f00da commit b888086
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 [email protected]
- 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
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
13 changes: 12 additions & 1 deletion integration_tests/ci/sample.profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,15 @@ integration_tests:
port: 443
connect_timeout: 60
connect_retries: 5
threads: 4
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
2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'google_ads_source_integration_tests'
version: '0.2.0'
version: '0.2.4'
profile: 'integration_tests'
config-version: 2

Expand Down

0 comments on commit b888086

Please sign in to comment.