array_distinct

array_distinct(expression)

説明

array_distinct 関数は、一意の値をすべてリスト形式で返します。リストは最大 25 個のランダムな要素に切り詰められます。一意のリストを得るための重複除去は、切り捨て前に適用されます。

パラメータのデータ型

STRING

戻り値の型

LIST

コードサンプル

異なるイベントタイプを含む配列を返します。

  $event_type = metadata.event_type
  outcome:
    $event_type_array = array_distinct($event_type)