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 1a743ca + fc8d114 commit c102fae
Show file tree
Hide file tree
Showing 5 changed files with 25 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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ or open PRs against `master`. Check out
on the best workflow for contributing to a package.

## Database Support
This package has been tested on BigQuery, Snowflake and Redshift.
This package has been tested on BigQuery, Snowflake, Redshift, Postgres, and Databricks.

## Resources:
- Provide [feedback](https://www.surveymonkey.com/r/DQ7K7WW) on our existing dbt packages or what you'd like to see next
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: 'linkedin'
version: '0.3.0'
version: '0.3.1'
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: linkedin_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: 'linkedin_integration_tests'
version: '0.2.0'
version: '0.3.1'
profile: 'integration_tests'
config-version: 2

Expand Down

0 comments on commit c102fae

Please sign in to comment.