参考 : https://www.coder.work/article/3220624
spark 2.4的新方法
Spark 2.4 引入了新的 SQL 函数 slice,可用于从数组列中提取一定范围的元素。
slice