Skip to main content

Column Tests

Tests applied on top of Column metrics. Here is the list of all column tests:

Column Values to Be Unique

Makes sure that there are no duplicate values in a given column. Dimension: Uniqueness Behavior Properties
  • columnValuesToBeUnique: To be set as true. This is required for proper JSON parsing in the profiler module.
YAML Config
JSON Config

Column Values to Be Not Null

Validates that there are no null values in the column. Dimension: Completeness Properties
  • columnValuesToBeNotNull: To be set as true. This is required for proper JSON parsing in the profiler module.
Behavior YAML Config
JSON Config

Column Values to Match Regex

This test allows us to specify how many values in a column we expect that will match a certain regex expression. Please note that for certain databases we will fall back to SQL LIKE expression. The databases supporting regex pattern as of 0.13.2 are:
  • redshift
  • postgres
  • oracle
  • mysql
  • mariaDB
  • sqlite
  • clickhouse
  • snowflake
The other databases will fall back to the LIKE expression Dimension: Validity Properties
  • regex: expression to match a regex pattern. E.g., [a-zA-Z0-9]{5}.
Behavior YAML Config
JSON Config

Column Values to not Match Regex

This test allows us to specify values in a column we expect that will not match a certain regex expression. If the test find values matching the forbiddenRegex the test will fail. Please note that for certain databases we will fall back to SQL LIKE expression. The databases supporting regex pattern as of 0.13.2 are:
  • redshift
  • postgres
  • oracle
  • mysql
  • mariaDB
  • sqlite
  • clickhouse
  • snowflake
The other databases will fall back to the LIKE expression Dimension: Validity Properties
  • regex: expression to match a regex pattern. E.g., [a-zA-Z0-9]{5}.
Behavior YAML Config
JSON Config

Column Values to Be in Set

Validate values form a set are present in a column. Dimension: Validity Properties
  • allowedValues: List of allowed strings or numbers.
Behavior YAML Config
JSON Config
JSON Config

Column Values to Be Not In Set

Validate that there are no values in a column in a set of forbidden values. Dimension: Validity Properties
  • forbiddenValues: List of forbidden strings or numbers.
Behavior YAML Config
JSON Config

Column Values to Be Between

Validate that the values of a column are within a given range.
Only supports numerical types.
Dimension: Accuracy Properties
  • minValue: Lower bound of the interval. If informed, the column values should be bigger than this number.
  • maxValue: Upper bound of the interval. If informed, the column values should be lower than this number.
Any of those two need to be informed. Behavior YAML Config
JSON Config

Column Values Missing Count to Be Equal

Validates that the number of missing values matches a given number. Missing values are the sum of nulls, plus the sum of values in a given list which we need to consider as missing data. A clear example of that would be NA or N/A. Dimension: Completeness Properties
  • missingCountValue: The number of missing values needs to be equal to this. This field is mandatory.
  • missingValueMatch (Optional): A list of strings to consider as missing values.
Behavior YAML Config
JSON Config
JSON Config

Column Values Lengths to Be Between

Validates that the lengths of the strings in a column are within a given range.
Only supports concatenable types.
Dimension: Accuracy Properties
  • minLength: Lower bound of the interval. If informed, the string length should be bigger than this number.
  • maxLength: Upper bound of the interval. If informed, the string length should be lower than this number.
Any of those two need to be informed. Behavior YAML Config
JSON Config

Column Value Max to Be Between

Validate the maximum value of a column is between a specific range
Only supports numerical types.
Dimension: Accuracy Properties
  • minValueForMaxInCol: lower bound
  • maxValueForMaxInCol: upper bound
Behavior YAML Config
JSON Config

Column Value Min to Be Between

Validate the minimum value of a column is between a specific range
Only supports numerical types.
Dimension: Accuracy Properties
  • minValueForMinInCol: lower bound
  • maxValueForMinInCol: upper bound
Behavior YAML Config
JSON Config

Column Value Mean to Be Between

Validate the mean of a column is between a specific range
Only supports numerical types.
Dimension: Accuracy Properties
  • minValueForMeanInCol: lower bound
  • maxValueForMeanInCol: upper bound
Behavior YAML Config
JSON Config

Column Value Median to Be Between

Validate the median of a column is between a specific range
Only supports numerical types.
Dimension: Accuracy Properties
  • minValueForMedianInCol: lower bound
  • maxValueForMedianInCol: upper bound
Behavior YAML Config
JSON Config

Column Values Sum to Be Between

Validate the sum of a column is between a specific range
Only supports numerical types.
Dimension: Accuracy Properties
  • minValueForColSum: lower bound
  • maxValueForColSum: upper bound
Behavior YAML Config
JSON Config

Column Values Standard Deviation to Be Between

Validate the standard deviation of a column is between a specific range
Only supports numerical types.
Dimension: Accuracy Properties
  • minValueForStdDevInCol: lower bound
  • minValueForStdDevInCol: upper bound
Behavior YAML Config
JSON Config

Column Values To Be At Expected Location

Validate the reference value for a column is a the expected geographic location
Data will be temporarely stored in memory while the test case is running to validate the location. Not data will be permanently stored. France is the only supported location at this time. To add any additional location please reach out to the team in our slack support channel
Dimension: Accuracy Properties
  • locationReferenceType: the type of location refernce CITY or POSTAL_CODE
  • longitudeColumnName: longitude column name
  • latitudeColumnName: latitude column name
  • radius: radius in meter from which the location can be from the expected lat/long — acts as a buffer
Behavior YAML Config
JSON Config