on-internet
← Community

Replicate SAS Merge happening in loop into Pyspark

Stack Overflow ·

I have an use case where I need to replicate a sas behaviour into pyspark. In Sas, the Merge between two datasets are happening and its not 1*1 key merge. Its a m*n key merge involving multiple keys. What I meant is, the datasets can have many to many join keys. In sas, the merge is happening in a iteration of 5 loop each loop is having a different. There are 5 keys fields on which the Merge happens, after each iteration the one key from the 5 keys are reduced. Iteration 1 Key - a, b, c, d, g Iteration 2 Key - a, b, c, d Iteration 3 Key - a, b, c, Iteration 4 Key - a, b Iteration 5 key - a dea

Comments

Sign in or sign up to comment and upvote.

No comments yet.