root
|-- trackNo: string (nullable = true)
|-- shipClassType: string (nullable = true)
|-- labelId: long (nullable = true)
|-- Latest_status_time: timestamp (nullable = true)
|-- Billing_start_time: timestamp (nullable = true)
|-- days: integer (nullable = true)
|-- time: string (nullable = true)
|-- Logistics_status: string (nullable = true)
val rdd88 = rdd24.withColumn("com", struct("time", "Logistics_status"))
.groupBy("trackNo", "shipClassType", "labelId","Latest_status_time","Billing_start_time","days")
.agg(collect_list("com").as("commm"))
root
|-- trackNo: string (nullable = true)
|-- shipClassType: string (nullable = true)
|-- labelId: long (nullable = true)
|-- Latest_status_time: timestamp (nullable = true)
|-- Billing_start_time: timestamp (nullable = true)
|-- days: integer (nullable = true)
|-- commm: array (nullable = true)
| |-- element: struct (containsNull = true)
| | |-- time: string (nullable = true)
| | |-- Logistics_status: string (nullable = true)