Apache Presto - 對映運算子



以下是對映運算子的型別。

對映下標運算子

查詢

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

結果

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

對映運算子返回帶鍵和值的陣列元素。

apache_presto_basic_sql_operations.htm
廣告
© . All rights reserved.