Hello,
If you exploding and got above error then it means you dont need to explode it as it is not type array or map.
You can simply access values as:
df_expanded = df.withColumn("prop1", expr("mycol.prop1"))
HTH
Hello,
If you exploding and got above error then it means you dont need to explode it as it is not type array or map.
You can simply access values as:
df_expanded = df.withColumn("prop1", expr("mycol.prop1"))
HTH