-
Notifications
You must be signed in to change notification settings - Fork 213
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
[Feature Request] Mapping Array to string #3963
Comments
I think this can be done in steps:
"some_source": [
{
"src_key_1": "val_1"
},
{
"src_key_1": "val_2"
}
] to: "some_dest": {
"src_key_1": ["val_1", "val_2"]
}
"some_dest": {
"dest_key_1": ["val_1", "val_2"]
}
"some_dest": {
"dest_key_1": "val_1, val2"
} |
Regarding the new processor mentioned above to convert list to string, a proposed solution is: The configuration would look like this:
|
Maybe for the new processor, we should give it a name that correctly indicates what it does when used as a verb. So perhaps make Do we need these extra nesting? Can it just be either of these?
or
|
What is the value of having different list operations if there is no significant common configuration shared? It seems to result in extra layering for users in the YAML. I'd prefer to start with a cleaner pipeline YAML. Then we can work from there to a technical design. There might be some shared code, but we could handle that by sharing the same Gradle project. |
@dlvenable I think the main value is to make it easier for users to locate a processor to use. If one wants to operate on lists/arrays, go to list processor to find it. It also makes processor naming cleaner, e.g. Now is also a good time to do it because we lack operations on lists and will likely add a couple to it soon. |
Looking at some existing processor configs (eg, processor:
- list:
source: "source-list"
target: "target"
action:
join:
delimiter: ","
process_when: ... Does it make more sense? It'll have some common options like |
@oeyh , I do think we can improve the experience for discovering processors, but that seems best accomplished by changes to the documentation page. Perhaps we can have a page to discover operations by specific types. Right now, we already support list mutations in other processors. Add items, and delete items are available for lists right? And other processors are often action-orient - what are they doing. I think this could cause user confusion. The update proposal for It may be useful to outline all the expected operations of this "list" processor to see where they have commonality. |
Also, the goal of the |
This is a feature request which is requested a processor to implement the following ETL functionality to handle Mapping Array to string
#SOURCE
#TO
#MAPPING
The text was updated successfully, but these errors were encountered: