Skip to content

Tasks: map a table into a dataset

Who does this: a data steward, with the quality-steward policyPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer.. The sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. must be connected first (Connect a source). The first time through is in Getting started: data steward; this page is the fuller account. The example is the customers table of Concepts.

  1. Data steward

    1. 1Map and collectYou pick the table and name the dataset
  2. Automatic

    1. 2Sample10,000 records profiled, counts only
    2. 3PublishThe mapping and proposed rules, on main
    3. 4First cutToday's data copied into the lake
    4. 5EvaluateA notice says the dataset is ready
Mapping a table: you choose the table and the dataset's name; Quality Data samples the table, publishes the mapping and the rules it proposes, takes the first cut and evaluates it. Each step links to where it is explained.

Mapping turns one table of a sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. into a dataset. Its mapping says:

  • The fields: one per column of the table, named as the column, each with its type (text, number, date…).
  • The record key: the field or fields that tell one record from another, taken from the table’s primary key. Without a record keyRecord key The field or fields of a dataset's mapping that tell one record from another. (or an entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it.), failing records cannot be followed, and the remediation queuesRemediation queue The findings of one value of a grouping field, such as an office, a region or a channel, with an SLA in days. The dashboard lists the groups with the most open findings first, each with its priority added up. stay empty.
  • Each field’s priority: critical, high, medium or low, which weights the field in a record’s ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. (data reliability index). Mapping sets every field to medium, so all weigh the same.
  • The roles of some fields, which switch charts and queues on.

A role tells Quality Data what a field is for. MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. proposes them from the column’s name and its sample: a role proposed for the wrong column, or missed, changes which charts appear.

Role What it is Proposed for Switches on
Grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by. A field whose values are groups that fix their own data: an office, a region, a channel A text column named like office, branch, advisor, product, channel, region or zone, with up to 500 different values The Remediation queues, one per value, and the charts by group: p′ chart by group, Largest groups, Groups that changed most
Entity keyEntity key The field that tells whom a record is about, such as a person's or a company's identity document; charts by entity need it. Who the record is about, such as a person’s or company’s identity document A column that looks like an identity document, or named like document type Distribution of the ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD. by entity and How entities moved between bands
SegmentSegment The commercial group a customer belongs to; it defines the offer and the service. A kind of customer or product, with few values A text column named like client type or segment, with up to 12 values With an entity key, Data condition by segment
Update date When the record was last updated A date column named like update or modified Update recency
Outlier amount An amount where unusual values are sought A number column named like income, amount, balance or value With a grouping field, Outliers by group
DriftDrift A change in how a data element is distributed between periods or batches. It may be a real market change or a load error; it is measured with the PSI. variable A number whose population is compared from one cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. to the next, with the PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. (population stability index) A number column named like income, age, rate or term PSIPopulation stability index How much a data element's distribution changed between two groups, comparing their shares across 10 bins of the base. Under 0.10, stable; 0.10 to 0.25, moderate change to watch; above 0.25, large change: the batch is reviewed before use. by deciles

The names are recognised in English and Spanish. Entity key, segment, update date and outlier amount go to one field at most: the first column that fits. Two more roles belong to an optional sector indicator and are never proposed. Charts that need no role appear for every datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them..

Mapping also marks fields whose value goes out of date, such as an e-mail, a phone, an address, an income or an employer, by their names: the time since the last update lowers their ICDData reliability index A score from 0 to 1 for each field of each record that combines conformity with its own rules, consistency with other fields and timeliness; weighted by priority, it gives a record's and an entity's ICD..

  1. In the Explorer, open the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it., then the schema, until you see the table, marked not read.
  2. Open the table and choose Map this table.
  3. In Map a table of …, check Table (schema.table, as the source names it) and type the Dataset name: lowercase letters, digits and _, starting with a letter, such as customers. The name cannot be changed later.
  4. Choose Map and collect.

You should see the notice MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. customers: you will be told when it is ready. and a turning circle beside the table; point at it to read the step it is on and since when: waiting for a workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one., sampling the table, collecting its data, evaluating the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.. When it is done, a notice says customers is ready: 12,000 records evaluated. It stays until you close it.

The notices come only while Quality Data is open in your browser. If you close it, nothing is lost: the dataset appears under Lake once it is published, and its first cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. under its Cuts.

  1. It reads a sample of 10,000 records of the table and keeps counts: how many are empty, how many different values, lengths. It never keeps a value.
  2. It proposes the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields.: the fields and their types, the record keyRecord key The field or fields of a dataset's mapping that tell one record from another., the roles, the priorities.
  3. It proposes rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. for each field: required when no record of the sample is empty and the column does not allow empty values; unique on the primary key; format for a column that looks like an e-mail, a mobile number or an identity document. Each is named MAP-001, MAP-002… with severitySeverity A rule's weight in the ICD: blocking 1.0, major 0.6 and minor 0.3. The pattern gives a rule its default severity. major.
  4. It publishes the mapping and those rules directly on main, the approved version: there is no draftDraft A change to a dataset's rules kept apart from main, usually saved by an author who may edit rules but not approve them, until someone who may approve reviews it and approves or discards it. to approve.
  5. It takes the first cut, today’s, and evaluates it with those rules.
  • The dataset: under Lake in the Explorer, as ◆ customers, with the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it. and table it reads. Open it: a line per column, with its rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. under it; a column with none is marked no rules.
  • The first cut: under the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them.’s Cuts, Evaluated, with its records.
  • The grouping fields: on the dataset’s Dashboard, below the charts, Remediation SLAsService level agreement A measurable commitment of time; a remediation queue's SLA is the days allowed to fix its findings, 30 unless someone sets another. (the service level agreements, the days each queue has) shows one block per grouping fieldGrouping field A field (an office, a region, a channel) that the dashboard and the remediation queues split results by.. If it says The dataset’s mapping has no field with the dimension role: its findings have no queue., none was proposed (the form calls a grouping field a dimension).
  • The other roles: by the charts on the Dashboard; each chart appears only when its role is there (Reading the dashboard).

No screen shows the mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. itself yet: its roles, priorities and key are seen only through what they switch on.

  • The rules: write, change and remove them as with any ruleRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version.; see the tutorial and Write, change and test a rule.
  • New columns: when the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.’s table gains columns, open the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. after List again on the source: the new ones show as not read. Map the whole table, under the dataset, adds them as fields, at once, ready for rules, with no role and medium priority.
  • The roles, the priorities, the record key and the types cannot be changed yet: there is no screen for it. MappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. the table again proposes the same, so it does not help. If something in the mapping is wrong, ask whoever supports your installation.
  1. In the Explorer, right-click the dataset (◆ customers under Lake, or its table in the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.) and choose Delete.
  2. Read what goes, type the dataset’s name under To confirm, type, and choose Delete.

The mappingMapping How a dataset's table is read: which column each field reads and its type, the record key, each field's priority and the roles of some fields. and the rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version. leave main (the rules catalogRules catalog Where Quality Data keeps every dataset's mapping and rules, with their history and the approved version, main.’s history keeps them); the schedulesSchedule What starts a dataset's cuts on its own: daily, weekly, monthly…, cutsCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment., results and the dataset’s copy in the lake are deleted. The source’s table is not touched and can be mapped again. It cannot be undone, and it is refused while one of its cuts is being extracted or evaluated.

What you see What it means and what to do
No Map this table on the table A datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. reads it already: the table shows → and the dataset’s name.
There is a dataset with that name already. Choose another name.
Check the table, the dataset or the sample. The name is not valid, the table is not in the sourceSource A database the organisation already runs. Quality Data reads it and never writes to it.’s last listing (List again on the source, and try again), or your policiesPolicy A set of permissions an administrator gives an account or a group. The product ships ready-made ones for the usual roles, such as quality-steward and quality-viewer. do not let you manage datasets.
… could not be mapped. The sample could not be read; nothing was published. Check the source’s connection (Connect a source) and map again.
…‘s data could not be collected. or …‘s rules could not be evaluated. The dataset was published, but its first cutCut The dataset's data as it was on one date, copied into the lake so it can be measured again without touching the source. Every figure of a report refers to that moment. failed. See When a run fails.
The circle stays on queued, waiting for a workerWorker A program that runs on its own beside the application and does the heavy work: listing a source's tables, mapping a table, copying a cut and evaluating it. Mapping and cuts need at least one. No worker is taking jobs. Tell your administrator.
… was not deleted: one of its cuts is being collected or evaluated. Wait for it to end. Wait until the cut is Evaluated or Failed, then delete again.
Not deleted: the name typed is not …. Type the dataset’s name exactly.

Run and schedule cuts to measure the datasetDataset One table of a source as Quality Data reads it: a name, its fields and the rules that check them. again, and the tutorial to write its rulesRule It applies a pattern to a field; the pattern gives it its dimension and a default severity. The rules that count are the ones on main, the approved version..

Government Data · Guide v0.8.1