{
  "schema_version": 2,
  "id": "integrate/redis-data-integration/reference/data-transformation/map",
  "title": "map",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/1.19.1/reference/data-transformation/map/",
  "summary": "Map a record into a new output based on expressions",
  "content": "\nMap a record into a new output based on expressions\n\n**Properties**\n\n| Name                          | Type               | Description                                                                                                                                                                                         | Required |\n| ----------------------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |\n| [**expression**](#expression) | `object`, `string` | Expression\u003cbr/\u003e                                                                                                                                                                                     | yes      |\n| **language**                  | `string`           | Language\u003cbr/\u003eEnum: `\"jmespath\"`, `\"sql\"`\u003cbr/\u003e                                                                                                                                                       | yes      |\n| **cache**                     | `object`           | Cache the result of the map expression. See [`cache`](https://redis.io/docs/latest/integrate/redis-data-integration/1.19.1/reference/data-transformation/cache) for the property list. **Flink processor only.**\u003cbr/\u003e | no       |\n\n**Additional Properties:** not allowed\n\n**Example**\n\n```yaml\nsource:\n  schema: dbo\n  table: emp\ntransform:\n  - uses: map\n    with:\n      expression:\n        first_name: first_name\n        last_name: last_name\n        greeting: \u003e-\n          'Hello ' || CASE WHEN gender = 'F' THEN 'Ms.' WHEN gender = 'M' THEN 'Mr.'\n          ELSE 'N/A' END || ' ' || full_name\n        country: country\n        full_name: full_name\n      language: sql\n```\n\n**Example**\n\n```yaml\nsource:\n  table: customer\ntransform:\n  - uses: map\n    with:\n      expression: |\n        {\n          \"CustomerId\": customer_id,\n          \"FirstName\": first_name,\n          \"LastName\": last_name,\n          \"Company\": company,\n          \"Location\":\n          {\n            \"Street\": address,\n            \"City\": city,\n            \"State\": state,\n            \"Country\": country,\n            \"PostalCode\": postal_code\n          },\n          \"Phone\": phone,\n          \"Fax\": fax,\n          \"Email\": email\n        }\n      language: jmespath\n```\n\n\u003ca name=\"expression\"\u003e\u003c/a\u003e\n\n## expression: object\n\nExpression\n\n**No properties.**\n",
  "tags": ["docs","integrate","rs","rdi"],
  "last_updated": "2026-09-19T17:55:58-07:00"
}
