> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8a08bda2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> Apache Arrow Flightサーバー経由で公開されるデータに対してクエリを実行できます。

# arrowFlight

[Apache Arrow Flight](/ja/concepts/features/interfaces/arrowflight)サーバー経由で公開されるデータに対してクエリを実行できます。

**構文**

```sql theme={null}
arrowFlight('host:port', 'dataset_name' [, 'username', 'password'])
```

**引数**

* `host:port` — Arrow Flight サーバーのアドレス。[String](/ja/reference/data-types/string)。
* `dataset_name` — Arrow Flight サーバーで利用可能なデータセットまたはディスクリプタの名前。[String](/ja/reference/data-types/string)。
* `username` - Basic HTTP スタイル認証で使用するユーザー名。
* `password` - Basic HTTP スタイル認証で使用するパスワード。
  `username` と `password` が指定されていない場合は、認証は使用されません
  (Arrow Flight サーバーでそれが許可されている場合にのみ動作します) 。

**戻り値**

* リモートのデータセットを表すテーブルオブジェクト。スキーマは Arrow Flight のレスポンスから推論されます。

**例**

```sql title="Query" theme={null}
SELECT * FROM arrowFlight('127.0.0.1:9005', 'sample_dataset') ORDER BY id;
```

```text title="Response" theme={null}
┌─id─┬─name────┬─value─┐
│  1 │ foo     │ 42.1  │
│  2 │ bar     │ 13.3  │
│  3 │ baz     │ 77.0  │
└────┴─────────┴───────┘
```

**関連項目**

* [Arrow Flight](/ja/reference/engines/table-engines/integrations/arrowflight) テーブルエンジン
* [Apache Arrow Flight SQL](https://arrow.apache.org/docs/format/FlightSql.html)
