Skip to content

Commit

Permalink
Implemented and validated all schema tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelene committed Jul 4, 2019
1 parent 9996f3a commit d142fa4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Easiest install is to use pip:

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

### Testing & documentation
- Unique: Is the only test tested so far. The rest will be tested and added if possible soon.

- All tests supported
- Docs

### Snapshots
- Timestamp
- Check

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.
2 changes: 1 addition & 1 deletion dbt/include/sqlserver/macros/schema_tests.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ select count(*) as validation_errors
from (

select
{{ column_name }}
{{ column_name }} as validation_errors

from {{ model }}
where {{ column_name }} is not null
Expand Down

0 comments on commit d142fa4

Please sign in to comment.