ExitAWS Glue: data quality checks1 / 7
Explanation

Completeness and validity ask different questions

How AWS Glue Data Quality checks completeness, validity, and uniqueness, and why these data properties matter for AI results. · foundational

AWS Glue Data Quality evaluates data against rules you choose. Two important properties are completeness: whether required values are present, and validity: whether values meet defined requirements. A value can be present but still be invalid.

For example, a training dataset might contain customer reviews and sentiment labels. A completeness rule checks that each review has a label rather than a null value. A validity rule checks that the label belongs to an allowed set, such as positive or negative. The label unknown-category is present, but outside that set. Empty strings and placeholder text may need additional rules; checking for nulls alone does not establish that a value is useful.

Glue expresses rules using Data Quality Definition Language (DQDL). For example, IsComplete "sentiment" requires non-null sentiment values, while ColumnValues "sentiment" in ["positive", "negative"] checks allowed values. These checks matter because missing labels can make examples unusable, while invalid labels can introduce errors into training.

PropertyQuestionExample failure
CompletenessIs the value present?Null sentiment label
ValidityDoes it meet the rule?Label outside allowed set