What is a mapping?
A mapping is the bridge between a data source and a schema. It tells the system: for each row in the source, produce a record with these schema fields filled in from those source columns.
Why a separate step?
Source columns rarely match schema fields exactly:
- A source column is called
Full Name, a schema field isname. - A source contains extra columns the template does not need.
- Some of the values you need live in a second source — a team list next to a player list.
The mapping captures these decisions once, so every dataset built on it uses the same logic.
What a mapping contains
- A primary data source to read rows from. Every row in it becomes one record.
- A target schema to produce.
- Per schema field, a binding: which source, and which column. A field left -- Not mapped -- gets the field's default value in the dataset.
- Optional joined sources — extra data sources looked up by a key column. See Joining data sources in a mapping.
A binding copies the column value as it is. Choosing rows, ordering them and capping their number is done on the dataset — see Filters, sort and row limit. Values that depend on other values are handled by Conditional rules on the schema.
Multiple mappings and datasets
- One source can have several mappings, for example to fill two different schemas.
- One mapping can feed several datasets, each with its own filters — for example one dataset filtered to the home team and one to the away team.
Next
- Read Building a mapping to create your first one.