I have a dataframe with the following schema:
root
|-- _1: struct (nullable = true)
| |-- key: string (nullable = true)
|-- _2: struct (nullable = true)
| |-- value: long (nullable = true)
I want to transform dataframe to the following schema:
root
|-- _1: struct (nullable = true)
| |-- key: string (nullable = true)
| |-- value: long (nullable = true)