ladderlore
请求新指南
  • 输入服务名称,例如 S3 或 IAM。

服务 · Analytics

AWS Glue Data Quality

DQDL rules, recommendations, scores and alerts that check tables and ETL data.

本课尚未翻译,暂以英文显示。

Table
DQDL ruleset
Evaluation run
Score
CloudWatch, EventBridge
  1. 1Pick the table to check.
  2. 2Write or recommend a DQDL ruleset.
  3. 3Run it on the catalog table or inside an ETL job.
  4. 4The score goes to CloudWatch and an event goes to EventBridge to trigger action.
A ruleset is run on a table and the score raises alerts.

分步说明

  1. 1Pick the table to check.
  2. 2Write or recommend a DQDL ruleset.
  3. 3Run it on the catalog table or inside an ETL job.
  4. 4The score goes to CloudWatch and an event goes to EventBridge to trigger action.

A ruleset is run on a table and the score raises alerts.

  • Not empty

    Completeness "email" > 0.95
  • No repeats

    IsUnique "order_id"
  • Values in range

    ColumnValues "age" between 0 and 120
  • Table not empty

    RowCount > 0
Four rule types with example DQDL.

是什么

AWS Glue Data Quality checks data against rules written in the Data Quality Definition Language (DQDL). A ruleset is a list of rules. Examples: IsComplete "customer_id" for no empty values, Completeness "email" > 0.95 for at least 95 percent filled, IsUnique "order_id", ColumnValues "age" between 0 and 120, and RowCount > 0. Rule recommendations profile a table and propose a starting ruleset, which you then review and edit, because it describes the data as it is, not as it should be.

是什么

Run rules in two places. On a table in the Data Catalog, to monitor a table on a schedule or on demand. Inside a Glue ETL job, with the Evaluate Data Quality transform, to stop or route bad data before it is written: fail the job, or send failed rows to a separate output. Each run gives every rule a pass or fail and a score, the share of rules that passed.

是什么

Scores and results go to Amazon CloudWatch as metrics, so you can set alarms, and Glue emits events to Amazon EventBridge when a run finishes, so you can trigger a notification, a retry or a quarantine step. Anomaly detection learns the usual statistics of a dataset from earlier runs, such as row count or averages, and flags a sudden change without a fixed threshold. It needs run history first.

DataBrew also has data quality rules, inside its no-code projects and profile jobs. Choose Glue Data Quality when checks belong in pipelines and on catalog tables. Choose DataBrew when analysts work visually.

要记住

  • DQDL rules: IsComplete, Completeness, IsUnique, ColumnValues, RowCount.
  • Recommendations propose rules from the data. Review them.
  • Run on catalog tables or inside ETL jobs, where bad rows can be routed away.
  • Score is the share of rules that pass. Metrics go to CloudWatch, events to EventBridge.

要记住

  • Anomaly detection needs history and needs no fixed threshold.
  • DataBrew rules are for visual work. Glue Data Quality is for pipelines.

考试中

  • “Stop an ETL job when a key column has nulls” points to a Glue Data Quality rule in the job that fails it.
  • “Alert when a data quality score drops” points to a CloudWatch alarm or an EventBridge rule on the run result.
  • “Start with suggested checks for a new table” points to Glue Data Quality rule recommendations.