How to flatten a nested recursive JSON struct to a list of struct
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 01:34 PM
This is from Spark Event log on Event SparkListenerSQLExecutionStart.
How to flatten the sparkPlanInfo struct into an array of the same struct, then later explode it. Note that the element children is an array containing the parent struct, and the level of nesting could be 0 to any random number.