darshthakkar
3 years agoValued Contributor
Converting value of input schema to distinct columns
Hi Team,
I’m reading a text file and wanted to fetch DISTINCT columns out of the data itself, screenshot below for your reference.
.txt file:
When I read the above data in snaplogic, the f...
- 6 years ago
They are
null
because the second object in the group hasnull
values for those properties, so it is overwriting the values from the first object in the group.I would suggest moving Mapper2 in your example to the end of the pipeline and just work with the objects you already have. You can then use the
merge()
method to combine the objects in the group together. The merge will preserve the nested structure, so that the values of one object in the group don’t clobber the values in the other objects.Here’s an updated version of your example:
GroupingObjects_2019_10_22.slp (28.2 KB)