Apache Presto - Map Operator


Following are the types of Map operators.

Map Subscript Operator

Query

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

Result

   map 
------------ 
 {1=2, 2=3} 

Map operator returns array elements with keys and values.

apache_presto_basic_sql_operations.htm
Advertisements