Skip to content

Commit

Permalink
Hotfix serverless sql (dbt-msft#132)
Browse files Browse the repository at this point in the history
* low-end serverless tier has no columnstore
* use cxn test to wake up serverless db
* no columnstore
* add new tests
  • Loading branch information
dataders authored and alonrada committed May 26, 2021
1 parent 21ab3df commit ae1a11d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ jobs:
- run: *install-dbt-sqlserver
- azure-cli/install
- run: *prep=connect
- run:
name: wake up server
command: |
cd test/integration
dbt debug --target azuresql_sqlcred
- run:
name: cnxn -- Azure SQL - SQL CRED user+pass
command: |
Expand Down Expand Up @@ -113,4 +118,7 @@ workflows:
- DBT_SYNAPSE_PROFILE
- connection-sqlserver: *profile
- integration-sqlserver: *profile
- integration-azuresql: *profile
- integration-azuresql:
<<: *profile
requires:
- connection-azuresql
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### v0.19.0.3

#### under the hood
- allow CI to work with the lower-cost serverless Azure SQL [#132](https://github.com/dbt-msft/dbt-sqlserver/pull/132)
### v0.19.0.2

#### fixes
Expand Down
21 changes: 20 additions & 1 deletion test/integration/azuresql.dbtspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,32 @@ target:
encrypt: yes
trust_cert: yes
threads: 1
projects:
- overrides: base
dbt_project_yml: &override-project
name: schema_tests
config-version: 2
version: '1.0.0'
models:
dbt_test_project:
+as_columnstore: false
- overrides: ephemeral
dbt_project_yml: *override-project
- overrides: incremental
dbt_project_yml: *override-project
- overrides: snapshot_strategy_timestamp
dbt_project_yml: *override-project
- overrides: snapshot_strategy_check_cols
dbt_project_yml: *override-project
- overrides: schema_tests
dbt_project_yml: *override-project
sequences:
test_dbt_empty: empty
test_dbt_base: base
test_dbt_ephemeral: ephemeral
test_dbt_incremental: incremental
test_dbt_snapshot_strategy_timestamp: snapshot_strategy_timestamp
# test_dbt_snapshot_strategy_check_cols: snapshot_strategy_check_cols
test_dbt_snapshot_strategy_check_cols: snapshot_strategy_check_cols
test_dbt_data_test: data_test
test_dbt_schema_test: schema_test
# test_dbt_ephemeral_data_tests: data_test_ephemeral_models

0 comments on commit ae1a11d

Please sign in to comment.