I use spark-shell to do the below operations.
spark-shell
Recently loaded a table with an array column in spark-sql .
Here is the DDL for the same:
use selecrExpr() and split() function in apache spark.
for example :
fs.selectExpr("((split(emp_details, ','))[0]) as e1,((split(emp_details, ','))[1]) as e2,((split(emp_details, ','))[2]) as e3);