Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2022 01:27 PM
Have you tried to use the explode function for that column with the array?
df.select(explode(df.emailId).alias("email")).show()----------
Also, if you are a SQL lover, you can instead use the Databricks syntax for querying a JSON seen here.