Profiling and recommended rules
A profile is a one-off scan of a table’s aggregate statistics. DataLoris uses it to recommend rules, so you don’t start from a blank page.
Run a profile
Section titled “Run a profile”Editors and admins can profile PostgreSQL and BigQuery tables:
- click Profile now right after adding an asset, or
- open the asset’s Profile tab and click Profile this asset (or Re-profile).
The profile runs in the background. A notification with View appears when it is ready; usually after a few seconds, longer for very large tables. One profile at a time can run per asset.
What a profile contains
Section titled “What a profile contains”For the table:
- row count (estimated for very large tables), column count, and how many columns were profiled (up to 100);
- whether the profile was sampled, and the sample percentage;
- the last-modified time (BigQuery).
For each column:
- data type, category (number, text, timestamp, boolean, other) and whether it is nullable;
- null count and null rate;
- whether it is a declared or enforced key;
- for a few key candidates and value-set candidates: the distinct count and ratio;
- for timestamp columns: the newest value and how many minutes ago that was.
Recommended rules
Section titled “Recommended rules”From the profile, DataLoris suggests up to 25 rules:
| Recommendation | Suggested when | Ticked by default |
|---|---|---|
Row count “not empty” (min_rows: 1), plus “no sudden drop” (max_drop_percent: 50 over the last 7 runs) |
The table has rows (the drop part from 1,000 rows) | Yes |
| Schema drift | Always | Yes |
Column freshness on the best timestamp column (updated_at, then loaded_at / ingested_at, other *_at, then created_at). Allowed staleness: twice what was observed, rounded up to the hour, between 1 hour and 7 days |
A timestamp column with values exists | If the table was updated in the last 24 hours |
| Table freshness with the same allowance, from the table’s last write | BigQuery (it records the last write) | If there is no timestamp column and the table was written in the last 24 hours |
| Table freshness “written daily” (24 hours, warning) | No timestamp column and no recorded last write (for example PostgreSQL) | No |
Null check “never null” (max_null_rate: 0) |
A nullable column that has no nulls | For key-like columns (id, …_id, …_key) |
| Null check with headroom (1.5 × the observed rate + 1 point, warning) | A column with some nulls (at most 50%) | No |
| Unique | A key candidate whose values were all distinct and that no constraint already enforces | Yes, unless the profile was sampled |
| Allowed values (the values seen, warning) | A status-like column holding 2 to 20 values | Yes, unless the profile was sampled |
Each recommendation comes with a plain-language reason. Columns whose names suggest personal or free-text data (email, name, phone, address, note…) are never read for allowed values.
Import
Section titled “Import”Tick or untick each recommendation, click one to edit its threshold or severity, then click Import. The import is all-or-nothing: if one rule is invalid, nothing is added and the console points at it. Recommendations that match a rule you already have show as Already added.
Imported rules are ordinary rules: edit, pause or archive them like any other. See rules.