Forum Discussion
koryknick, Thank you for your help. I was provided a solution by a coworker.
It's essentially that pipeline solution you provided HTTP Client Pagination with a few tweaks. I modified the HTTP Client as follows: Removed pagination configurations and the parameters configurations for both http snaps and added to the body of the 2nd HTTP snap "after" : $splitValue, "limit" : 100 Then I was getting subsequent data. But the data was duplicating. So I modified the map for pagination as follows:
@bojanvelevski - The SRC and TGT columns will be dynamic, the above given is just an example. As you said, I am able to spot the difference. But I need to dynamically iterate over json and find the difference between same column present in source and target. (There might be chance that there might be difference in other columns as well), any help is appreciated.
Adding more info -If the Input is
[
{
"SRC_DATE": "2023-11-20 09:24:29.231",
"SRC_NAME": "AGENT",
"SRC_OWNER": "JHON",
"TGT_DATE": "2023-11-20 09:24:29.231",
"TGT_NAME": "AGENT_TEST",
"TGT_OWNER": "CHRIS",
"reason": "Source & Target Records Different",
"srcTable": "CLASS",
"primaryColumns": "DATE,NAME",
"nonPrimaryColumns": "OWNER",
"srcSchool": "TEST"
}
]
The output I am looking for is -[
{
"COLUMN_NAME" : "SRC_OWNER",
"COLUMN_VALUE_SRC": "JHON",
"COLUMN_VALUE_TGT": "CHRIS",
"reason": "Source & Target Records Different",
"srcTable": "CLASS",
"primaryColumns": "DATE,NAME",
"nonPrimaryColumns": "OWNER",
"srcSchool": "TEST"
},
{
"COLUMN_NAME" : "SRC_NAME",
"COLUMN_VALUE_SRC": "AGENT",
"COLUMN_VALUE_TGT": "AGENT_TEST",
"reason": "Source & Target Records Different",
"srcTable": "CLASS",
"primaryColumns": "DATE,NAME",
"nonPrimaryColumns": "OWNER",
"srcSchool": "TEST"
}
]
Related Content
- 3 years ago
- 3 months ago
- 2 years ago