-
Notifications
You must be signed in to change notification settings - Fork 277
RDSC-3619: Remapping the output #1662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mich-elle-luna
merged 5 commits into
redis:main
from
ilianiliev-redis:RDSC-3619-remapping-the-output
Jun 17, 2025
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
76d4afd
Remapping the output
ilianiliev-redis 379c91b
Update content/integrate/redis-data-integration/data-pipelines/transf…
ilianiliev-redis 66a80dd
Update content/integrate/redis-data-integration/data-pipelines/transf…
ilianiliev-redis 3eaee5f
Update content/integrate/redis-data-integration/data-pipelines/transf…
ilianiliev-redis 3b18fb3
Merge branch 'main' into RDSC-3619-remapping-the-output
mich-elle-luna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...edis-data-integration/data-pipelines/transform-examples/remapping-the-output.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| --- | ||
| Title: Remapping the fields in the output | ||
| aliases: null | ||
| alwaysopen: false | ||
| categories: | ||
| - docs | ||
| - integrate | ||
| - rs | ||
| - rdi | ||
| description: null | ||
| group: di | ||
| linkTitle: Remapping the fields in the output | ||
| summary: Redis Data Integration keeps Redis in sync with the primary database in near | ||
| real time. | ||
| type: integration | ||
| weight: 40 | ||
| --- | ||
|
|
||
| Sometimes, you may want to remap the fields in the output of a data pipeline. This can be done by defining a `mapping` section in the output configuration. | ||
ilianiliev-redis marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ```yaml | ||
| source: | ||
| table: Customer | ||
|
|
||
| output: | ||
| - uses: redis.write | ||
| with: | ||
| data_type: hash | ||
| mapping: | ||
| - CustomerId: id | ||
| - FirstName: first_name | ||
| - LastName: last_name | ||
| ``` | ||
| The 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. | ||
| You can also use `mapping` to include only the fields you need in the output and exclude the rest. | ||
|
|
||
| Mapping 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]({{< relref "/integrate/redis-data-integration/data-pipelines/transform-examples/map-example" >}}). | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.