

# Athena エンジンバージョン 3 の関数
<a name="functions-env3"></a>

Athena エンジンバージョン 3 の関数は Trino に基づいています。Trino の関数、演算子、および式については、Trino ドキュメントの「[Functions and operators](https://trino.io/docs/current/functions.html)」(関数と演算子) とそのサブセクションを参照してください。
+  [Aggregate](https://trino.io/docs/current/functions/aggregate.html) 
+  [配列](https://trino.io/docs/current/functions/array.html) 
+  [バイナリ](https://trino.io/docs/current/functions/binary.html) 
+  [ビット操作](https://trino.io/docs/current/functions/bitwise.html) 
+  [Color](https://trino.io/docs/current/functions/color.html) 
+  [比較](https://trino.io/docs/current/functions/comparison.html) 
+  [条件付き](https://trino.io/docs/current/functions/conditional.html) 
+  [変換](https://trino.io/docs/current/functions/conversion.html) 
+  [日付および時間](https://trino.io/docs/current/functions/datetime.html) 
+  [10 進数](https://trino.io/docs/current/functions/decimal.html) 
+  [地理空間](https://trino.io/docs/current/functions/geospatial.html) 
+  [HyperLogLog](https://trino.io/docs/current/functions/hyperloglog.html) 
+  [IP アドレス](https://trino.io/docs/current/functions/ipaddress.html) 
+  [JSON](https://trino.io/docs/current/functions/json.html) 
+  [Lambda](https://trino.io/docs/current/functions/lambda.html) 
+  [論理](https://trino.io/docs/current/functions/logical.html) 
+  [機械学習](https://trino.io/docs/current/functions/ml.html) 
+  [マッピング](https://trino.io/docs/current/functions/map.html) 
+  [数値演算](https://trino.io/docs/current/functions/math.html) 
+  [分位点ダイジェスト](https://trino.io/docs/current/functions/qdigest.html) 
+  [正規表現](https://trino.io/docs/current/functions/regexp.html) 
+  [セッション](https://trino.io/docs/current/functions/session.html) 
+  [セットダイジェスト](https://trino.io/docs/current/functions/setdigest.html) 
+  [文字列](https://trino.io/docs/current/functions/string.html) 
+  [[テーブル]](https://trino.io/docs/current/functions/table.html) 
+  [Teradata](https://trino.io/docs/current/functions/teradata.html) 
+  [T ダイジェスト](https://trino.io/docs/current/functions/tdigest.html) 
+  [[URL]](https://trino.io/docs/current/functions/url.html) 
+  [UUID](https://trino.io/docs/current/functions/uuid.html) 
+  [Window](https://trino.io/docs/current/functions/window.html) 

## invoker\$1principal() 関数
<a name="functions-env3-invoker-principal"></a>

この `invoker_principal` 関数は Athena エンジンバージョン 3 に固有のもので、Trino にはありません。

関数を呼び出すクエリを実行したプリンシパル (IAM ロールまたは アイデンティティセンター ID) の ARN を含む `VARCHAR` を返します。例えば、クエリ呼び出し元が IAM ロールのアクセス許可を使用してクエリを実行する場合、関数は IAM ロールの ARN を返します。クエリを実行するロールは、`LakeFormation:GetDataLakePrincipal` アクションを許可する必要があります。

### 使用方法
<a name="functions-invoker-principal-usage"></a>

```
SELECT invoker_principal()
```

次の表は結果の例を示しています。


****  

| \$1 | \$1col0 | 
| --- | --- | 
| 1 | arn:aws:iam::111122223333:role/Admin | 