Unnest
Describes the unnest operator in the multi-stage query engine.
SQL syntax
Basic unnesting
SELECT t.id, elem
FROM myTable AS t
CROSS JOIN UNNEST(t.arrayColumn) AS u(elem)WITH ORDINALITY
SELECT t.id, elem, pos
FROM myTable AS t
CROSS JOIN UNNEST(t.arrayColumn) WITH ORDINALITY AS u(elem, pos)Unnesting multiple arrays together
Filtering unnested elements
Aggregating after unnesting
Implementation details
Blocking nature
NULL and empty array handling
Hints
Stats
executionTimeMs
emittedRows
Explain attributes
Example explain plan
Last updated
Was this helpful?

