DatascanDataQualitySpecRule constructor

const DatascanDataQualitySpecRule({
  1. Input<Map<String, String>?>? attributes,
  2. Input<String?>? column,
  3. Input<String?>? description,
  4. required Input<String> dimension,
  5. Input<bool?>? ignoreNull,
  6. Input<String?>? name,
  7. Input<Map<String, dynamic>?>? nonNullExpectation,
  8. Input<DatascanDataQualitySpecRuleRangeExpectation?>? rangeExpectation,
  9. Input<DatascanDataQualitySpecRuleRegexExpectation?>? regexExpectation,
  10. Input<DatascanDataQualitySpecRuleRowConditionExpectation?>? rowConditionExpectation,
  11. Input<DatascanDataQualitySpecRuleSetExpectation?>? setExpectation,
  12. Input<DatascanDataQualitySpecRuleSqlAssertion?>? sqlAssertion,
  13. Input<DatascanDataQualitySpecRuleStatisticRangeExpectation?>? statisticRangeExpectation,
  14. Input<bool?>? suspended,
  15. Input<DatascanDataQualitySpecRuleTableConditionExpectation?>? tableConditionExpectation,
  16. Input<DatascanDataQualitySpecRuleTemplateReference?>? templateReference,
  17. Input<double?>? threshold,
  18. Input<Map<String, dynamic>?>? uniquenessExpectation,
})

Creates a new DatascanDataQualitySpecRule. attributes Map of attribute name and value linked to the rule. column The unnested column which this rule is evaluated against. description Description of the rule. dimension The dimension name a rule belongs to. Custom dimension name is supported with all uppercase letters and maximum length of 30 characters. ignoreNull Rows with null values will automatically fail a rule, unless ignoreNull is true. In that case, such null rows are trivially considered passing. Only applicable to ColumnMap rules. name A mutable name for the rule. nonNullExpectation ColumnMap rule which evaluates whether each column value is null. rangeExpectation ColumnMap rule which evaluates whether each column value lies between a specified range. regexExpectation ColumnMap rule which evaluates whether each column value matches a specified regex. rowConditionExpectation Table rule which evaluates whether each row passes the specified condition. setExpectation ColumnMap rule which evaluates whether each column value is contained by a specified set. sqlAssertion Table rule which evaluates whether any row matches invalid state. statisticRangeExpectation ColumnAggregate rule which evaluates whether the column aggregate statistic lies between a specified range. suspended Whether the Rule is active or suspended. Default = false. tableConditionExpectation Table rule which evaluates whether the provided expression is true. templateReference Aggregate rule which references a rule template and provides the parameters to be substituted in the template. threshold The minimum ratio of passingRows / totalRows required to pass this rule, with a range of 0.0, 1.0. 0 indicates default value (i.e. 1.0). uniquenessExpectation Row-level rule which evaluates whether each column value is unique.

Implementation

const DatascanDataQualitySpecRule({
  this.attributes,
  this.column,
  this.description,
  required this.dimension,
  this.ignoreNull,
  this.name,
  this.nonNullExpectation,
  this.rangeExpectation,
  this.regexExpectation,
  this.rowConditionExpectation,
  this.setExpectation,
  this.sqlAssertion,
  this.statisticRangeExpectation,
  this.suspended,
  this.tableConditionExpectation,
  this.templateReference,
  this.threshold,
  this.uniquenessExpectation,
});