Skip to content

Commit d142fa4

Browse files
committed
Implemented and validated all schema tests
1 parent 9996f3a commit d142fa4

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Easiest install is to use pip:
2323

2424
### Materializations
2525
- Table:
26-
- Will be materialized as columns store index by default (requires SQL Server 2017 as least). To override specify:
26+
- Will be materialized as columns store index by default (requires SQL Server 2017 as least). To override:
2727
{{
2828
config(
2929
as_columnstore = false,
@@ -44,10 +44,11 @@ Easiest install is to use pip:
4444
### Sources
4545

4646
### Testing & documentation
47-
- Unique: Is the only test tested so far. The rest will be tested and added if possible soon.
48-
47+
- All tests supported
4948
- Docs
5049

5150
### Snapshots
5251
- Timestamp
5352
- Check
53+
54+
But, all columns in source table needs to be set to allow NULL. If any column has a NOT NULL constraint, an error will be thrown.

dbt/include/sqlserver/macros/schema_tests.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ select count(*) as validation_errors
66
from (
77

88
select
9-
{{ column_name }}
9+
{{ column_name }} as validation_errors
1010

1111
from {{ model }}
1212
where {{ column_name }} is not null

0 commit comments

Comments
 (0)