This SDF library contains the standard tests available in the default namespace for SDF data tests. As such, tests defined in this workspace do not need to be prefixed with the workspace name, they can be referenced directly. Here's an example:
columns:
- name: a
tests:
- expect: unique()
- expect: not_null()
Note: SDF is still < v1, as such certain scenarios may result in unexpected behavior. Please follow the contributing guidelines and create an issue in this repo if you find any bugs or issues.
For an in-depth guide on how to use SDF tests, please see the Tests section of our official docs
Test Name | Type |
---|---|
not_null() |
Scalar |
valid_scalar(condition) |
Scalar |
valid_aggregate(condition) |
Aggregate |
unique() |
Aggregate |
in_accepted_values([values]) |
Aggregate |
minimum(value) |
Aggregate |
maxiumum(value) |
Aggregate |
exclusive_minimum(value) |
Aggregate |
exclusive_maximum(value) |
Aggregate |
between(lower, upper) |
Aggregate |
max_length(value) |
Aggregate |
min_length(value) |
Aggregate |
like(string) |
Aggregate |
try_cast(type) |
Aggregate |
primary_key(column) |
Aggregate |
unique_columns([c1, c2]) |
Table |
Asserts that no values of a column elements are null.
Example:
columns:
- name: a
tests:
- expect: not_null()