Can someone please tell me how to split array into separate column in spark dataframe.
Please check this link and let me know if that helps:
*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.
Thanks for sharing the links, i found these threads earlier. These static one(defined for 3 elements).
I would expect more dynamic. Eg: Today i may receive 3 elements, tomorrow may be 10 elements. Code should handle it dynamically.