从Spark数据框中的数组的初始结构中删除字段的最有效方法是什么?模式例如:
|-- myString: string (nullable = false)
|-- myArr: array (nullable = false)
| |-- element: struct (containsNull = true)
| | |-- id: string (nullable = false)
| | |-- type: integer (nullable = false)
| | |-- message: string (nullable = false)
至(删除了“ id”字段):
|-- myString: string (nullable = false)
|-- myArr: array (nullable = false)
| |-- element: struct (containsNull = true)
| | |-- type: integer (nullable = false)
| | |-- message: string (nullable = false)