# Export Schema

Source: https://userguide.qualytics.io/operations/export-operation/deep-dive/export-schema/

Each Export Operation writes an output to the linked enrichment destination. The fields depend on the asset type. This page describes the exported fields. Nested records are flattened before writing: container and datastore references become name/ID fields, tags and field names become comma-separated strings, and remaining objects become JSON strings. Field casing and physical types depend on the destination.

> **Info: The outputs as they land**
>
> For the physical output names and field types in the destination, including SQL for unpacking JSON columns in JDBC destinations, see [Export Outputs](https://userguide.qualytics.io/source-datastore/enrichment-datastore/deep-dive/export-tables/).

## Quality Checks

The Quality Check export captures one row per check on the selected containers.

| Column | Type | Notes |
| --- | --- | --- |
| `id` | integer | The check identifier |
| `created` | string | Creation timestamp |
| `container_id` | integer | Source container identifier |
| `source_container` | string | Source container name |
| `datastore_id` | integer | Source datastore identifier |
| `source_datastore` | string | Source datastore name |
| `generated_at` | string | Export generation timestamp |
| `template_id` | integer | null | Parent template identifier, when the check was created from a template |
| `fields` | string | Comma-separated names of the fields targeted by the check |
| `description` | string | null |  |
| `rule_type` | string | The rule the check enforces (e.g. `isNotNull`, `isUnique`) |
| `coverage` | number | Expected coverage of the check |
| `inferred` | boolean | `true` when the check was created by AI Managed Checks |
| `filter` | string | null | SQL filter applied before evaluation |
| `properties` | string | null | Rule-type-specific configuration serialized as JSON |
| `deleted_at` | string | null | Non-null only for archived checks |
| `global_tags` | string | Comma-separated names of tags attached to the check |
| `last_editor` | string | null | User details serialized as JSON |
| `last_updated` | string | null | When the check was last edited or its importance last changed, whichever is later. `null` when neither has happened |
| `first_asserted` | string | null | The earliest scan that produced a `pass` or `fail` result. Preserved across out-of-order partition scans (it never moves forward). |
| `last_asserted` | string | null | The most recent scan that produced a `pass` or `fail` result. |
| `is_passing` | boolean | null | The check's current pass/fail status |
| `weight` | number | Deprecated numeric weight of the check, kept for existing integrations. Use `importance_level` instead |
| `importance_level` | string | null | The check's [importance](https://userguide.qualytics.io/data-quality-checks/checks/deep-dive/importance/): `low`, `medium`, `high`, or `critical` |
| `additional_metadata` | string | null | Free-form metadata serialized as JSON |
| `status` | string | `Active`, `Draft`, `Invalid`, or `Discarded` |

Both `first_asserted` and `last_asserted` reflect the **scan start time** at the moment the check produced a result, in UTC. They are `null` for checks that have never been asserted.

## Anomalies

The Anomaly export captures one row per anomaly on the selected containers.

| Column | Type | Notes |
| --- | --- | --- |
| `id` | integer | The anomaly identifier |
| `created` | string | Creation timestamp |
| `container_id` | integer | Source container identifier |
| `source_container` | string | Source container name |
| `datastore_id` | integer | Source datastore identifier |
| `source_datastore` | string | Source datastore name |
| `generated_at` | string | Export generation timestamp |
| `uuid` | string | Stable identifier, preserved across re-runs and scan iterations |
| `type` | string | `shape` or `record` |
| `status` | string | `Active`, `Acknowledged`, `Resolved`, `Invalid`, `Duplicate`, or `Discarded` |
| `impact_level` | string | null | The anomaly's [impact](https://userguide.qualytics.io/anomalies/deep-dive/triage/impact/): `low`, `medium`, `high`, or `critical` |
| `global_tags` | string | Comma-separated names of tags attached to the anomaly |

The Anomaly export is intentionally minimal so it can be joined with the platform's anomaly API for additional detail when needed.

### Anomalies with Records

Exporting Anomalies with **Merge with Source Records** writes every column above plus the columns below, one row per anomaly, failed check, and source record. See [Merge with Source Records](https://userguide.qualytics.io/operations/export-operation/deep-dive/how-it-works/#merge-with-source-records).

`created`, `first_identified_at`, `scan_start_time` and `scan_end_time` are ISO-8601 strings in UTC, ending in `Z` (for example `2026-10-01T08:30:00.123456Z`). `scan_start_time` and `scan_end_time` cover the scan of the whole container, so they can differ from the per-partition times in the `_scan_operations` Scan output; see [_EXPORT_ANOMALY_RECORDS](https://userguide.qualytics.io/source-datastore/enrichment-datastore/deep-dive/export-tables/#_export_anomaly_records-table).

| Column | Type | Notes |
| --- | --- | --- |
| `check_id` | integer | A failed check on the anomaly, not proof that this particular `record` failed that check |
| `scan_id` | integer | The Scan operation that raised the anomaly |
| `source_partition` | string | The partition the anomaly was found in. On a table this is the table's name; on a file source, the file without its extension |
| `first_identified_at` | string | When the anomaly was first identified: the earliest `created` among the anomalies on the same container that share its fingerprint, whatever their status. Equals `created` when there is no earlier match |
| `check_message` | string | null | Why the check in `check_id` failed for this anomaly, as listed under the anomaly's failed checks. `null` when the anomaly has no failed check |
| `scan_start_time` | string | null | When the scan of the container that raised the anomaly started |
| `scan_end_time` | string | null | When that scan of the container ended |
| `record` | string | null | One source record the anomaly flagged, as JSON, read from the enrichment destination's source records when the export runs. `null` when the anomaly has none |

## Field Profiles

The Field Profile export captures one row per (container, field) pair from the most recent profile.

| Column | Type | Notes |
| --- | --- | --- |
| `field_profile_id` | integer | Identifier of the exported field profile |
| `created` | string | Profile creation timestamp |
| `generated_at` | string | Export generation timestamp |
| `field_id` | integer | ID of the profiled field |
| `field_name` | string | Field name |
| `field_display_name` | string | null | Display name of the field, when one is set |
| `field_native_type` | string | null | The field's type as declared in the source system (e.g. `VARCHAR`) |
| `field_status` | string | `active`, `masked`, `missing`, or `excluded`. See the note below the table. |
| `field_description` | string | null | Field description |
| `field_quality_score` | string | null | Field-level quality score. Currently always exported as `null`; read field quality scores in the platform or through the API instead. |
| `field_weight` | integer | Field weight used in quality scoring |
| `field_global_tags` | string | Comma-separated tag names on the field |
| `datastore_id` | integer | Source datastore ID |
| `source_datastore` | string | Source datastore name |
| `datastore_type` | string | Source datastore connector type |
| `container_id` | integer | Source container ID |
| `source_container` | string | Source container name |
| `container_container_type` | string | `table`, `file`, `computed_table`, etc. |
| `name` | string | Field name |
| `field_type` | string | `STRING`, `INT`, `FLOAT`, `BOOLEAN`, `TIMESTAMP`, etc. |
| `type_declared` | boolean | Whether the type was explicitly declared in the source schema |
| `completeness` | number | null | Fraction of non-null values, 0..1 |
| `approximate_distinct_values` | number | null | HyperLogLog estimate of distinct values |
| `mean` | number | null |  |
| `min` | number | null |  |
| `max` | number | null |  |
| `sum` | number | null |  |
| `std_dev` | number | null | Standard deviation |
| `kurtosis` | number | null |  |
| `skewness` | number | null |  |
| `entropy` | number | null | Shannon entropy |
| `min_length` | number | null |  |
| `max_length` | number | null |  |
| `unique_distinct_ratio` | number | null |  |
| `is_not_normal` | boolean | null | Normality test outcome |
| `q1` | number | null | First quartile |
| `median` | number | null | Second quartile |
| `q3` | number | null | Third quartile |
| `histogram_buckets` | string | null | JSON-serialized list of `{value, count}` pairs. The `value` is masked when the field is under field masking and `include_masked` was not set. See [Field Masking](https://userguide.qualytics.io/operations/export-operation/deep-dive/field-masking/). |

Because the export keeps one row per field from the most recent profile, it can include fields that are no longer present in the source as the schema evolves. Use `field_status` to tell them apart: `active` and `masked` fields are still operational, `missing` fields were not found in the latest profile results, and `excluded` fields were manually removed from analysis. See [Field Status Types](https://userguide.qualytics.io/fields/field-status/concepts/field-status-types/) for details on each status.

*Last updated: November 20, 2026.*
