Trying to understand the presto CROSS JOIN and UNNEST statements from the docs here , there is a code snippet that I don't understand:
SELECT student, score
FROM tests
CROSS JOIN UNNEST(scores) AS t (score);
I don't understand the lowercase t -- is it a function? What does it do? In my own tables, the query stops working when I remove the t and the parentheses, but I can't understand why.
t
is an alias, not a function. UNNEST(scores) AS t
provides a virtual table, aliased t
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.