@lindsey.homenick
To cross join and unnest a JSON array in Presto, you can use the following query:
1 2 3 |
SELECT * FROM table CROSS JOIN UNNEST(json_parse(column_name)) AS t(column_name) |
In this query:
This query will cross join the original table with the unnested JSON array, resulting in a new row for each element in the JSON array.