当前位置:网站首页>Spark 之 built-in functions

Spark 之 built-in functions

2022-06-27 05:33:00 zhixingheyi_tian

explode

explode(expr) - Separates the elements of array expr into multiple rows, or the elements of map expr into multiple rows and columns. Unless specified otherwise, uses the default column name col for elements of the array or key and value for the elements of the map.

Examples:

> SELECT explode(array(10, 20));
 10
 20
原网站

版权声明
本文为[zhixingheyi_tian]所创,转载请带上原文链接,感谢
https://blog.csdn.net/zhixingheyi_tian/article/details/125458086