An anomaly flag is a record attached to a row or a partition that names the rule it failed, the severity and the detail, leaving the row itself unchanged; consumers decide whether to exclude flagged rows. A quarantine is the state of a partition that failed an error-severity rule: it is withheld from readers until a person releases it, with a reason, or it is rebuilt.
fig_dataqual.py.