I have a Spark DataFrame with the a single column 'value', whereby each row is an Array of equal length. How can I explode this single 'value' column into multiple columns, which follow a schema like this?
val bronzeDfSchema = new StructType()
.add("DATE", IntegerType)
.add("NUMARTS", IntegerType)
.add("COUNTS", StringType)
.add("THEMES", StringType)
.add("LOCATIONS", StringType)
.add("PERSONS", StringType)
.add("ORGANIZATIONS", StringType)
.add("TONE", StringType)
.add("CAMEOEVENTIDS", StringType)
.add("SOURCES", StringType)
.add("SOURCEURLS", StringType)
Thank you!