0

Spark DF with one column, where each row is of the

Type:

org.apache.spark.sql.Row

Form:

  col1: array (nullable = true)
|     |-- A1: struct (containsNull = true)
|     |       |-- B1: struct (nullable = true)
|     |       |    |-- B11: string (nullable = true)
|     |       |    |-- B12: string (nullable = true)

|     |       |-- B2: string (nullable = true)

I am trying to get the value of

A1->B1->B11. 

Any methods to fetch this with the DataFrame APIs or indexing without converting each row into a seq and then iterating through it which affects my performance badly. Any suggestions would be great. Thanks

Alper t. Turker
  • 34,230
  • 9
  • 83
  • 115
data_person
  • 4,194
  • 7
  • 40
  • 75

0 Answers0