Why don’t you simply use a fullOuterJoin to do that? Cheers, Till
On Fri, Feb 12, 2016 at 4:48 PM, Flavio Pompermaier <pomperma...@okkam.it> wrote: > Hi to all, > > I have a use case where I have to merge 2 datasets but I can't find a > direct dataset API to do that. > I want to execute some function when there's a match, otherwise move on > the not-null element. > At the moment I can do this in a fairly complicated way (I want to avoid > broadcasting because the dataset could be big): using 2 leftOuterJoin plus > a union. Is there a simpler way? > > > Best, > Flavio >