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
  • 32,514
  • 8
  • 78
  • 112
data_person
  • 3,832
  • 7
  • 35
  • 60

0 Answers0