{
  "schema_version": 2,
  "id": "integrate/redis-data-integration/data-pipelines/transform-examples/remapping-the-output",
  "title": "Remapping the fields in the output",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/1.19.1/data-pipelines/transform-examples/remapping-the-output/",
  "summary": "",
  "content": "\nSometimes, you may want to remap the fields in the output of a data pipeline. You can do this by defining a `mapping` section in the output configuration.\n\n```yaml\nname: Remap customer fields\nsource:\n  table: Customer\n\noutput:\n  - uses: redis.write\n    with:\n      data_type: hash\n      mapping:\n        - CustomerId: id\n        - FirstName: first_name\n        - LastName: last_name\n```\n\nThe example above remaps the `CustomerId` field to `id`, `FirstName` to `first_name`, and `LastName` to `last_name` in the output. This allows you to customize the field names in the Redis data store according to your application's requirements.\nYou can also use `mapping` to include only the fields you need in the output and exclude the rest.\n\nMapping only allows you to rename fields and limit the output to specific fields and define a single level structure. To create nested structures and/or perform operations on the field values you can use the [map transformation](https://redis.io/docs/latest/integrate/redis-data-integration/1.19.1/data-pipelines/transform-examples/map-example).\n",
  "tags": ["docs","integrate","rs","rdi"],
  "last_updated": "2026-09-19T17:55:58-07:00"
}
