I have dataframe with 2 columns: uid: string visits: array<structtimestamp:bigint,url:string>
I need to make a new df with 3 columns: uid | timestamp (timestamp from visits:timestamp)| url (url from visits: url)
Im kinda new to the scala and spark so i dont have an idea how to map it in the right way.
For example, if i have df like this:
uid | vists
uid1 | [[timestamp1 : url1, timestamp2: url2]]
I need to make it like this:
uid | timestamp | url
uid1 | timestamp1 | url1
uid1 | timestamp2| url2