I have two seq objects. I am mergeing those two objects using
a.zip(b)
It gives me schema
| |-- element: struct (containsNull = true)
| | |-- _1: string (nullable = true)
| | |-- _2: double (nullable = false)
I want that schema to be
| |-- element: struct (containsNull = true)
| | |-- name: string (nullable = true)
| | |-- value: double (nullable = false)
How can I convert this?
It is an inner row to existing row