Limitations
This topic describes the limitations of using Data Quality APIs and configuring Specs.
DataQualityScan Spec limitations
Datasets
You can configure at most one Datasets entry.
Only one table is supported in tables. Wildcards are not currently supported.
Configure filter to specify the data range by using a WHERE condition.
NoteA filter is required for a MaxCompute partitioned table. Otherwise, execution fails.
datasets:
- type: Table
tables:
- ods_d_dq_openapi_log # At most one table; wildcards are not supported
dataSource:
name: odps_first
envType: Dev
filter: "dt = '$[yyyymmdd-1]'" # Currently, only a data range specified by a WHERE condition is supported
rules:
# ...Rules
Thresholds for fluctuation rules support only the following formats:
Rule threshold requirements | Format |
To alert on an increase, the fail threshold must be greater than the warn threshold, and both must be greater than 0. |
|
To alert on a decrease, the fail threshold must be less than the warn threshold, and both must be less than 0. |
|
To alert on both increases and decreases, use not between. The lower and upper bounds must be opposites, and the absolute values of the fail bounds must be greater than those of the warn bounds. None of the bounds can be 0. |
|
DataQualityTemplate Spec limitations
Only certain fixed combinations of the assertion parameter are supported in rule templates.
Rule | Example assertion parameter configuration |
Compare with a fixed value | |
Fluctuation from the seven-day average
| |
Fluctuation from the 30-day average | |
Day-over-day fluctuation | |
Seven-day periodic fluctuation | |
30-day periodic fluctuation | |
Fluctuation in the seven-day variance | |
Fluctuation in the 30-day variance | |
Fluctuation detection over 1, 7, and 30 days | |
Intelligent dynamic threshold | |
DataQualityAlertRule limitations
A DataQualityAlertRule can monitor only one DataQualityScan.
AlertRules that monitor the same DataQualityScan must have the same Condition.
Condition supports only one expression format. Combine the
resultsobject'sstatusproperty with theresultscorrespondingruleobject'sseverityproperty. These two properties must appear as a pair.results.any { r -> r.status == 'Fail' && r.rule.severity == 'Normal' || r.status == 'Error' && r.rule.severity == 'High' || r.status == 'Warn' && r.rule.severity == 'High' }