I am using Spark with Java and I have a dataframe like this:
id | array_column
-------------------
12 | [a:123, b:125, c:456]
13 | [a:443, b:225, c:126]
I want to explode array_column with the same id, however explode doesn't work, because I want dataframe to become:
id | a | b | c
-------------------
12 |123 |125 | 456
13 |443 |225 | 126