Apache Presto - slice(x,start,length)



Query

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

Result

 array_slice 
------------- 
   [1, 2] 
apache_presto_sql_functions.htm
Advertisements