Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2024 03:46 AM
You should be able to read the json file with below code.
val df = spark.read.format("json").load("file.json")
After this you will need to use the explode function to add columns to the dataframe using the nested values.