lateral view [outer] explode
Presto migration from Hive
docs
SELECT student, score
FROM tests
LATERAL VIEW explode(scores) t AS score;
Hive Lateral View
SELECT * FROM exampleTable
LATERAL VIEW explode(col1) myTable1 AS myCol1
LATERAL VIEW explode(myCol1) myTable2 AS myCol2;
OUTER
LATERAL VIEW
SELECT * FROM src LATERAL VIEW OUTER explode(array()) C AS a limit 10;
array
src
explode()
UDTFs