日常使用中发现trino和hive中的有一些函数存在差异,所以开此帖记录一下
size()
cardinality()
Map[key]
element_at(map(K, V), key)
SELECT student, score FROM tests LATERAL VIEW explode(scores) t AS score;
SELECT student, score FROM tests CROSS JOIN UNNEST(scores) AS t (score);
京公网安备 11010502049817号