I'd like to explode an array of structs to columns (as defined by the struct fields). E.g.
root
|-- news_style_super: array (nullable = true)
| |-- element: array (containsNull = true)
| | |-- element: struct (containsNull = true)
| | | |-- name: string (nullable = true)
| | | |-- sbox_ctr: double (nullable = true)
| | | |-- wise_ctr: double (nullable = true)
Should be transformed to
|-- name: string (nullable = true)
|-- sbox_ctr: double (nullable = true)
|-- wise_ctr: double (nullable = true)
How can I do this?