GitHub user mgaido91 opened a pull request: https://github.com/apache/spark/pull/21040
[SPARK-23930][SQL] Add slice function ## What changes were proposed in this pull request? The PR add the `slice` function. The behavior of the function is based on Presto's one. The function slices an array according to the requested start index and length. ## How was this patch tested? added UTs You can merge this pull request into a Git repository by running: $ git pull https://github.com/mgaido91/spark SPARK-23930 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/21040.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #21040 ---- commit 5cbbf7afb164d090bfe5730380a2fbe0a18146c2 Author: Marco Gaido <marcogaido91@...> Date: 2018-04-10T13:49:53Z [SPARK-23930][SQL] Add slice function ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org