I have a table with two columns and i am trying get multiple rows with the values in the array.My table is like this.
date users
2019-01-01 ["U00001","U00002","U00002"]
I am trying to get the output like below
date users
2019-01-01 "U00001"
2019-01-01 "U00002"
2019-01-01 "U00003"
I am using below query
SELECT date, user FROM table1
LATERAL VIEW explode(users) myTable2 AS user;
I am not able to get the output that i expected above and
my query results are showing like this.
date user
2019-01-01 "U00001","U00002","U00002"
my column data types are
column data_type
date string
user Array