How to rename the _1
, _2
to meaningful column names in Spark/Scala?
root
|-- aaa: string (nullable = true)
|-- bbb: array (nullable = true)
| |-- element: struct (containsNull = true)
| | |-- _1: string (nullable = true)
| | |-- _2: long (nullable = false)