I have a table with multiple rows in a column, I want to create columns from distinct rows in that column using spark/scala