AbsaOSS / AbsaOSS/spark-hats

Select an element from an array of arrays

未关闭
#17 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement question
主要语言
Scala
星标
38
派生
4
PR 合并指标
30 天内没有已合并 PR

描述

## Background
If you have an array of arrays select doesn't work

## Feature
Be able to select a column from array of arrays

## Example [Optional]
```scala
scala> res0.printSchema
root
|-- id: long (nullable = false)
|-- name: string (nullable = true)
|-- items: array (nullable = true)
| |-- element: struct (containsNull = true)
| | |-- itemid: string (nullable = true)
| | |-- qty: integer (nullable = false)
| | |-- price: double (nullable = false)
| | |-- payments: array (nullable = true)
| | | |-- element: struct (containsNull = true)
| | | | |-- payid: string (nullable = true)
| | | | |-- amount: double (nullable = false)

scala> res0.selectFromArray(col("items.payments.payid"))
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。