AbsaOSS / AbsaOSS/spark-hats

Select an element from an array of arrays

Đang mở
#17 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement question
Ngôn ngữ chính
Scala
Star
38
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

## 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"))
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.