当前位置:网站首页>Built in functions of spark

Built in functions of spark

2022-06-27 05:44: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://yzsam.com/2022/178/202206270533436342.html