AbsaOSS / AbsaOSS/spark-hats

Select an element from an array of arrays

オープン
#17 コメント 0 件 リアクション 0 件 担当者 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 を短くまとめたダイジェスト。