{
  "schema_version": 2,
  "id": "integrate/redis-data-integration/reference/data-transformation/add_field",
  "title": "add_field",
  "url": "https://redis.io/docs/latest/integrate/redis-data-integration/1.19.1/reference/data-transformation/add_field/",
  "summary": "Add fields to a record",
  "content": "\nAdd fields to a record\n\n**Option 1 (alternative):**\nAdd multiple fields\n\n**Properties**\n\n| Name                         | Type       | Description | Required |\n| ---------------------------- | ---------- | ----------- | -------- |\n| [**fields**](#option1fields) | `object[]` | Fields\u003cbr/\u003e | yes      |\n\n**Additional Properties:** not allowed\n\n**Example**\n\n```yaml\nsource:\n  schema: dbo\n  table: emp\ntransform:\n  - uses: add_field\n    with:\n      fields:\n        - field: name.full_name\n          language: jmespath\n          expression: concat([name.fname, ' ', name.lname])\n        - field: name.fname_upper\n          language: jmespath\n          expression: upper(name.fname)\n```\n\n**Option 2 (alternative):**\nAdd one field\n\n**Properties**\n\n| Name           | Type     | Description                                                                                                                                                                                           | Required |\n| -------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |\n| **field**      | `string` | Field\u003cbr/\u003e                                                                                                                                                                                            | yes      |\n| **expression** | `string` | Expression\u003cbr/\u003e                                                                                                                                                                                       | yes      |\n| **language**   | `string` | Language\u003cbr/\u003eEnum: `\"jmespath\"`, `\"sql\"`\u003cbr/\u003e                                                                                                                                                         | yes      |\n| **cache**      | `object` | Cache the result of the field 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: add_field\n    with:\n      field: country\n      language: sql\n      expression: country_code || ' - ' || UPPER(country_name)\n```\n\n\u003ca name=\"option1fields\"\u003e\u003c/a\u003e\n\n## Option 1: fields\\[\\]: array\n\nFields\n\n**Items**\n\n**Item Properties**\n\n| Name           | Type     | Description                                                                                                                                                                                           | Required |\n| -------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |\n| **field**      | `string` | Field\u003cbr/\u003e                                                                                                                                                                                            | yes      |\n| **expression** | `string` | Expression\u003cbr/\u003e                                                                                                                                                                                       | yes      |\n| **language**   | `string` | Language\u003cbr/\u003eEnum: `\"jmespath\"`, `\"sql\"`\u003cbr/\u003e                                                                                                                                                         | yes      |\n| **cache**      | `object` | Cache the result of the field 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**Item Additional Properties:** not allowed\n\n**Example**\n\n```yaml\n- {}\n```\n",
  "tags": ["docs","integrate","rs","rdi"],
  "last_updated": "2026-09-19T17:55:58-07:00"
}
