как я могу сгладить схему - PullRequest
0 голосов
/ 28 января 2020

У меня есть такая схема

root
 |-- CaseNumber: string (nullable = true)
 |-- Interactions: struct (nullable = true)
 |    |-- EmailInteractions: array (nullable = true)
 |    |    |-- element: string (containsNull = true)
 |    |-- PhoneInteractions: array (nullable = true)
 |    |    |-- element: struct (containsNull = true)
 |    |    |    |-- CreatedOn: string (nullable = true)
 |    |    |    |-- Direction: string (nullable = true)
 |    |-- WebInteractions: array (nullable = true)
 |    |    |-- element: string (containsNull = true)

Как мне сделать так

root
 |-- CaseNumber: string (nullable = true)
 |-- CreatedOn: string (nullable = true)
 |-- Direction: string (nullable = true)

Будет оказана любая помощь

1 Ответ

0 голосов
/ 29 января 2020

Попробуйте это:

dl4=dl3.select([$"CaseNumber",$"Interactions.PhoneInteractions.CreatedOn",$"Interactions.PhoneInteractions.Direction"])
...