hive中的爆炸函数写法:
SELECT student, score
FROM tests
LATERAL VIEW explode(scores) t AS score;
爆炸函数在presto中的写法:
SELECT student, score
FROM tests
CROSS JOIN UNNEST(scores) AS t (score);
微信扫一扫
hive中的爆炸函数写法:
SELECT student, score
FROM tests
LATERAL VIEW explode(scores) t AS score;
爆炸函数在presto中的写法:
SELECT student, score
FROM tests
CROSS JOIN UNNEST(scores) AS t (score);
相关推荐