-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:fishtown-analytics/dbt-external-t…
…ables into fix/snowpipe-copy-commit
- Loading branch information
Showing
23 changed files
with
178 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
|
||
version: 2.1 | ||
|
||
orbs: | ||
azure-cli: circleci/[email protected] | ||
|
||
jobs: | ||
|
||
integration-redshift: | ||
docker: | ||
- image: circleci/python:3.6.3-stretch | ||
- image: circleci/python:3.6.13-stretch | ||
steps: | ||
- checkout | ||
- run: | ||
|
@@ -16,7 +19,7 @@ jobs: | |
|
||
integration-snowflake: | ||
docker: | ||
- image: circleci/python:3.6.3-stretch | ||
- image: circleci/python:3.6.13-stretch | ||
steps: | ||
- checkout | ||
- run: | ||
|
@@ -29,7 +32,7 @@ jobs: | |
environment: | ||
BIGQUERY_SERVICE_KEY_PATH: "/home/circleci/bigquery-service-key.json" | ||
docker: | ||
- image: circleci/python:3.6.3-stretch | ||
- image: circleci/python:3.6.13-stretch | ||
steps: | ||
- checkout | ||
- run: | ||
|
@@ -63,9 +66,23 @@ jobs: | |
- image: dataders/pyodbc:1.2 | ||
steps: | ||
- checkout | ||
- run: &gnupg2 | ||
name: az cli dep | ||
command: apt-get install gnupg2 -y | ||
- azure-cli/install | ||
- azure-cli/login-with-service-principal: &azure-creds | ||
azure-sp: DBT_AZURE_SP_NAME | ||
azure-sp-password: DBT_AZURE_SP_SECRET | ||
azure-sp-tenant: DBT_AZURE_TENANT | ||
- run: | ||
name: resume Synapse pool/db | ||
command: az synapse sql pool resume --name $DBT_SYNAPSE_DB --workspace-name $DBT_SYNAPSE_SERVER --resource-group dbt-msft | ||
- run: | ||
name: "Run Tests - synapse" | ||
command: ./run_test.sh synapse | ||
- run: | ||
name: pause Synapse pool/db | ||
command: az synapse sql pool resume --name $DBT_SYNAPSE_DB --workspace-name $DBT_SYNAPSE_SERVER --resource-group dbt-msft | ||
- store_artifacts: | ||
path: ./logs | ||
|
||
|
@@ -74,9 +91,9 @@ jobs: | |
- image: dataders/pyodbc:1.2 | ||
steps: | ||
- checkout | ||
- run: | ||
name: "wait for Synapse tests to finish" | ||
command: sleep 60 | ||
- run: *gnupg2 | ||
- azure-cli/install | ||
- azure-cli/login-with-service-principal: *azure-creds | ||
- run: | ||
name: "Run Tests - azuresql" | ||
command: ./run_test.sh azuresql | ||
|
@@ -93,4 +110,6 @@ workflows: | |
- integration-bigquery | ||
- integration-databricks | ||
- integration-synapse | ||
- integration-azuresql | ||
- integration-azuresql: | ||
requires: | ||
- integration-synapse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
**/target/ | ||
**/dbt_modules/ | ||
**/logs/ | ||
**/env/ | ||
**/venv/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
version: 2 | ||
|
||
sources: | ||
- name: synapse_external | ||
schema: "{{ target.schema }}" | ||
loader: ADLSblob | ||
|
||
tables: | ||
|
||
- name: people_csv_unpartitioned | ||
external: &csv-people | ||
location: '/csv' | ||
file_format: "{{ target.schema ~ '.dbt_external_ff_testing' }}" | ||
data_source: "{{ target.schema ~ '.dbt_external_tables_testing' }}" | ||
reject_type: VALUE | ||
reject_value: 0 | ||
ansi_nulls: true | ||
quoted_identifier: true | ||
columns: &cols-of-the-people | ||
- name: id | ||
data_type: int | ||
- name: first_name | ||
data_type: varchar(64) | ||
- name: last_name | ||
data_type: varchar(64) | ||
- name: email | ||
data_type: varchar(64) | ||
tests: &equal-to-the-people | ||
- dbt_external_tables_integration_tests.tsql_equality: | ||
compare_model: ref('people') | ||
compare_columns: | ||
- id | ||
- first_name | ||
- last_name | ||
|
||
- name: people_csv_partitioned | ||
external: | ||
<<: *csv-people | ||
# TODO: SYNAPSE DOES NOT DO PARTITIONS | ||
# (BUT WE COULD MAKE A WORKAROUND !!!) | ||
# partitions: &parts-of-the-people | ||
# - name: section | ||
# data_type: varchar | ||
columns: *cols-of-the-people | ||
tests: *equal-to-the-people |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.