Need to group Great Grand parent , Grand parent , Father ,Child etc…..Records in single Row in spark This is Source Data Frame