Skip to content

Commit ae1a11d

Browse files
datadersalonrada
authored andcommitted
Hotfix serverless sql (dbt-msft#132)
* low-end serverless tier has no columnstore * use cxn test to wake up serverless db * no columnstore * add new tests
1 parent 21ab3df commit ae1a11d

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
7979
- run: *install-dbt-sqlserver
8080
- azure-cli/install
8181
- run: *prep=connect
82+
- run:
83+
name: wake up server
84+
command: |
85+
cd test/integration
86+
dbt debug --target azuresql_sqlcred
8287
- run:
8388
name: cnxn -- Azure SQL - SQL CRED user+pass
8489
command: |
@@ -113,4 +118,7 @@ workflows:
113118
- DBT_SYNAPSE_PROFILE
114119
- connection-sqlserver: *profile
115120
- integration-sqlserver: *profile
116-
- integration-azuresql: *profile
121+
- integration-azuresql:
122+
<<: *profile
123+
requires:
124+
- connection-azuresql

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

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

59
#### fixes

test/integration/azuresql.dbtspec

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,32 @@ target:
1111
encrypt: yes
1212
trust_cert: yes
1313
threads: 1
14+
projects:
15+
- overrides: base
16+
dbt_project_yml: &override-project
17+
name: schema_tests
18+
config-version: 2
19+
version: '1.0.0'
20+
models:
21+
dbt_test_project:
22+
+as_columnstore: false
23+
- overrides: ephemeral
24+
dbt_project_yml: *override-project
25+
- overrides: incremental
26+
dbt_project_yml: *override-project
27+
- overrides: snapshot_strategy_timestamp
28+
dbt_project_yml: *override-project
29+
- overrides: snapshot_strategy_check_cols
30+
dbt_project_yml: *override-project
31+
- overrides: schema_tests
32+
dbt_project_yml: *override-project
1433
sequences:
1534
test_dbt_empty: empty
1635
test_dbt_base: base
1736
test_dbt_ephemeral: ephemeral
1837
test_dbt_incremental: incremental
1938
test_dbt_snapshot_strategy_timestamp: snapshot_strategy_timestamp
20-
# test_dbt_snapshot_strategy_check_cols: snapshot_strategy_check_cols
39+
test_dbt_snapshot_strategy_check_cols: snapshot_strategy_check_cols
2140
test_dbt_data_test: data_test
2241
test_dbt_schema_test: schema_test
2342
# test_dbt_ephemeral_data_tests: data_test_ephemeral_models

0 commit comments

Comments
 (0)