【发布时间】:2021-12-08 17:46:30
【问题描述】:
我的 Pyspark 数据框如下所示:
|-- name: string (nullable = true)
|-- other_attr: array (nullable = true)
| |-- element: struct (containsNull = true)
| | |-- key: string (nullable = true)
| | |-- value: string (nullable = true)
我正在寻找在 other_attr 下的结构数组中没有 [Closed, Yes] 的行。 other_attr 是一个结构数组,可以是一个空数组。如何运行此过滤?
【问题讨论】: