Service · Analytics
AWS Glue Data Quality
DQDL rules, recommendations, scores and alerts that check tables and ETL data.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
- 1Pick the table to check.
- 2Write or recommend a DQDL ruleset.
- 3Run it on the catalog table or inside an ETL job.
- 4The score goes to CloudWatch and an event goes to EventBridge to trigger action.
အဆင့်ဆင့်
- 1Pick the table to check.
- 2Write or recommend a DQDL ruleset.
- 3Run it on the catalog table or inside an ETL job.
- 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
| Check | Example rule |
|---|---|
| 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 |
ဘာလဲ
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.