---
Title: map
aliases: /integrate/redis-data-integration/ingest/reference/data-transformation/map/
alwaysopen: false
categories:
- docs
- integrate
- rs
- rdi
description: Map a record into a new output based on expressions
group: di
linkTitle: map
summary:
Redis Data Integration keeps Redis in sync with the primary database in near
real time.
type: integration
weight: 10
---
Map a record into a new output based on expressions
**Properties**
| Name | Type | Description | Required |
| ----------------------------- | ------------------ | --------------------------------------------- | -------- |
| [**expression**](#expression) | `object`, `string` | Expression
| yes |
| **language** | `string` | Language
Enum: `"jmespath"`, `"sql"`
| yes |
**Additional Properties:** not allowed
**Example**
```yaml
source:
schema: dbo
table: emp
transform:
- uses: map
with:
expression:
first_name: first_name
last_name: last_name
greeting: >-
'Hello ' || CASE WHEN gender = 'F' THEN 'Ms.' WHEN gender = 'M' THEN 'Mr.'
ELSE 'N/A' END || ' ' || full_name
country: country
full_name: full_name
language: sql
```
**Example**
```yaml
source:
table: customer
transform:
- uses: map
with:
expression: |
{
"CustomerId": customer_id,
"FirstName": first_name,
"LastName": last_name,
"Company": company,
"Location":
{
"Street": address,
"City": city,
"State": state,
"Country": country,
"PostalCode": postal_code
},
"Phone": phone,
"Fax": fax,
"Email": email
}
language: jmespath
```
## expression: object
Expression
**No properties.**