Apache Presto - array_position(x,element)

查询

presto:default> select array_position(array[1,2],1) as position; 
 position 
---------- 
    1

apache_presto_sql_functions.html