AbsaOSS / AbsaOSS/spark-hats

Select an element from an array of arrays

Aperta
#17 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement question
Lingua principale
Scala
Stelle
38
Fork
4
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.