Apache Presto - slice(x,start,length)

查询

presto:default> select slice(array[1,2,3],1,2) as array_slice; 
 array_slice 
------------- 
   [1, 2] 

apache_presto_sql_functions.html