โ08-04-2021 01:01 PM
Hi Team,
I am trying to achieve below. I would need directions on how to achieve below in a mapper or any other way.
Source :
{
โUBER_IDโ:[
โ1โ,
โInteger_patternโ
],
โFirst_nameโ:[
โMajidโ,
โTextOnly_patternโ
],
โLast_nameโ:[
โโ,
โTextOnly_patternโ
]
}
Target :
I would like to rename the above fields based on the value in the array. Below is the output I am looking at.
{
โInteger_patternโ:[
โ1โ,
],
โTextOnly_patternโ:[
โMajidโ,
],
" TextOnly_pattern":[
โโ,
]
}
โ08-06-2021 12:53 PM
@del Thank You so much for all your help. I think this is better solution and I will not need pivot and even data validator if I go with this solution. This will also make the pipeline more dynamic. Any new regex I need to add I will add in expression library.
I hope the performance is as good as I have seen in data validator. But this is the best solution for the use case I have.
Appreciate your help. Will update the post with final solution and performance metrics once I complete the code and testing.